GameBuilder GameBuilder - 6 months ago 21
Vb.net 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
ZRouteName
instead of Static Data.

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


I am getting Error.: Sysntax Error

Please help to rectify this.

Thanks In Advance
Prat

Answer

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

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

Comments