Re: Does VBscript support " & _" for long strings?
- From: Alexander Mueller <millerax@xxxxxxxxxxx>
- Date: Wed, 17 Jan 2007 14:55:11 +0100
Ed schrieb:
"Michael Harris (MVP)" <mikhar.at.mvps.dot.org> wrote in message news:%23ssqL4cOHHA.140@xxxxxxxxxxxxxxxxxxxxxxxEd wrote:I know in Word and Excel VBA macros, I can set a long string usingYes - _ as a line continuation character is supported in VBScript.
& 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
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
.
- Follow-Ups:
- References:
- Does VBscript support " & _" for long strings?
- From: Ed
- Re: Does VBscript support " & _" for long strings?
- From: Michael Harris \(MVP\)
- Re: Does VBscript support " & _" for long strings?
- From: Ed
- Does VBscript support " & _" for long strings?
- Prev by Date: Re: Does VBscript support " & _" for long strings?
- Next by Date: Loading a delimited file into SQL Server DB, must encrypt some fields
- Previous by thread: Re: Does VBscript support " & _" for long strings?
- Next by thread: Re: Does VBscript support " & _" for long strings?
- Index(es):
Relevant Pages
|