Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This was not supposed to work!
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
This was not supposed to work!
Miscellaneous
Thread ID:
00455201
Message ID:
00455201
Views:
68
I have a character field that I define in multiple lines as follows (CODE 1).

lcString = "AAAAAAAAAAAAAAAAAAA" ;
+ "BBBBBBBBBBBBBBBBB";
+ "CCCCCCCCCCCCCCCCC";
+ "DDDDDDDDDDDDDDDDD"

I accidentally typed (CODE 2):

lcString = "AAAAAAAAAAAAAAAAAAA ;
BBBBBBBBBBBBBBBBB;
CCCCCCCCCCCCCCCCC;
DDDDDDDDDDDDDDDDD"

which worked! As I was making changes to this code (without realizing that I have an incorrect syntax), I came across an instance where CODE 2 would not work any more. After a little testing, I realized my mistake, but also realized that CODE 2 works, as long as the length of lcString is less than 255 chars.

Is there an explanation to this and was CODE 2 supposed to work?

Thanks,
Aristotle
Next
Reply
Map
View

Click here to load this message in the networking platform