Re: Does VBscript support " & _" for long strings?



Thanks, Michael. At least now I know to look elsewhere for my problems..
8>0

Ed

"Michael Harris (MVP)" <mikhar.at.mvps.dot.org> wrote in message
news:%23ssqL4cOHHA.140@xxxxxxxxxxxxxxxxxxxxxxx
Ed wrote:
I know in Word and Excel VBA macros, I can set a long string using
& vbCrLf & _
to continue the string on the next line. I seem to be getting an
error in a script using this. Then again, it may well be something
else. So I thought I'd check on this while I look over everything
else just to make sure this is okay in scripting.

Thanks.
Ed

Yes - _ as a line continuation character is supported in VBScript.

--
Michael Harris
Microsoft.MVP.Scripting




.



Relevant Pages