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



Ah! Thank you - my Copy and Paste may have done me in, then. I will look
for that.
Ed

"Alexander Mueller" <millerax@xxxxxxxxxxx> wrote in message
news:u2Ric8jOHHA.2312@xxxxxxxxxxxxxxxxxxxxxxx
Ed schrieb:

"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.


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

Not that a trailing ' _' is legal in vb(a) but not in vbs.

msgbox "hello" _


MfG,
Alex


.



Relevant Pages

  • Re: Wont work on FireFox
    ... The JS interpreter sees the inside your string and closes the ... script. ... This may not be the Right Thing, but a simple workaround would ... Alex wrote: ...
    (comp.lang.javascript)
  • Does VBscript support " & _" for long strings?
    ... I know in Word and Excel VBA macros, I can set a long string using ... & vbCrLf & _ ... script using this. ...
    (microsoft.public.scripting.vbscript)
  • Re: Does VBscript support " & _" for long strings?
    ... Ed schrieb: ... & vbCrLf & _ ... to continue the string on the next line. ... error in a script using this. ...
    (microsoft.public.scripting.vbscript)
  • Re: Does VBscript support " & _" for long strings?
    ... & vbCrLf & _ ... to continue the string on the next line. ... error in a script using this. ... Michael Harris ...
    (microsoft.public.scripting.vbscript)
  • Re: How to rewrite with awk?
    ... > I'm unfamiliar with tools such as sed & awk. ... Extract the string that matches a RE. ... This script will not only expand all the lines that say "include ... file) and not resetting ARGV(the tmp file), it then lets awk do any ...
    (comp.unix.shell)