Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I put multiple commands on a single line?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Can I put multiple commands on a single line?
Miscellaneous
Thread ID:
00264921
Message ID:
00264921
Views:
49
I have the following code:
LOCAL laMyArray(4)
laMyArray(1) = "MyTable.MyField 1"
laMyArray(2) = "MyTable.MyField 2"
laMyArray(3) = "MyTable.MyField 3"
laMyArray(4) = "MyTable.MyField 4"

But I would like to do the following code:
LOCAL laMyArray(4)
laMyArray(1) = "MyTable.MyField 1" laMyArray(2) = "MyTable.MyField 2"
laMyArray(3) = "MyTable.MyField 3" laMyArray(4) = "MyTable.MyField 4"

The reason I want to do this is because I have as many as 21 elements in my array and it would be easier to read multiple commands grouped as above rather than scrolling down 21 lines. I would only have to scroll down 11 lines. Will this syntax work or what character is needed to separate the commands?

I thought I read this somewhere, but I don't remember the answer.
Thanks for the help.
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Next
Reply
Map
View

Click here to load this message in the networking platform