GameBuilder GameBuilder - 1 year ago 96 Question

Create XML Schema in VB

I have VB Script.

In the Function

Private Function generateXMLSchema(ZRouteName) As String

Dim generatedXmlSchema As String ="<Name>tEST 250504</Name>"

Here Name Element is Static.

I want to
instead of Static Data.


I am getting Error.: Sysntax Error

Please help to rectify this.

Thanks In Advance

Answer Source

You need to use the ampersand (&) to concatenate your variable to the string like this

"<Name>" & ZRouteName & "</Name>"