line continuation in the editor

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
pgriffin
Automation Wizard
Posts: 460
Joined: Wed Apr 06, 2005 5:56 pm
Location: US and Europe

line continuation in the editor

Post by pgriffin » Sat Nov 26, 2005 5:53 am

this may seem like a beginner question, but I can't find how to place one very long command in the editor (it passes several variables to a VB sub) on multiple lines.

what is the symbol/technique for continuing a line of code?

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Sat Nov 26, 2005 6:06 am

If I'm understanding you correctly, set your text to variables then use the variables as the command. These are not long but the technique is the same:

Let>first=cmd /c
Let>second= dir c:\
Let>third= /s /b
Run>%first%%second%%third%

Hope this was what you were looking for,
Dick

User avatar
pgriffin
Automation Wizard
Posts: 460
Joined: Wed Apr 06, 2005 5:56 pm
Location: US and Europe

Post by pgriffin » Sat Nov 26, 2005 4:39 pm

Your suggestion might work, but I'm just looking for a way to wrap one line of code so that I can see it all easily. My code does something like this:

VBRun>SingleRecord (var1,var2,var3,var4,var5.......var25...)

typing so many parms extends the line to a ridiculous (and unreadable) length.

I would like to find something like:

VBRun>SingleRecord (var1, var2, var3 +_
var4, var5, var6 +_
etc........

I'm sure there is a way, but I've not been able to find it in the help or in the previous posts in this forum.

thank you.

SkunkWorks

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sat Nov 26, 2005 4:41 pm

I'm afraid there is no line continuation option at present.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts