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
Miscellaneous
Thread ID:
00264921
Message ID:
00265298
Views:
13
>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.

Ahh, a hostile developer interface?< G >
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform