Does VBscript support " & _" for long strings?
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
.
Relevant Pages
- Re: Does VBscript support " & _" for long strings?
... & vbCrLf & _ ... to continue the string on the next line. ... error in a script using this. ... Alex ... (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) - Re: Slow string
... I see virtually no difference in execution time for the code you posted when using cscript versus using wscript; to confirm, I bracketed the code with an initial ... Are you actually entering the script name into a console window? ... You can use the exact same line for every wrapper script - and that includes wsf and js scripts; all you need to do is change the final "vbs" to "wsf" or "js" as appropriate. ... If you build a large string by small concatenations, the performance degrades geometrically - so does array resizing, because they both use the same nasty technique inherited from VB1 of copying the entire data structure to a new structure with the added element. ... (microsoft.public.scripting.vbscript) |
|