GameBuilder GameBuilder - 2 years ago 131 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>"

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download