Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
This was not supposed to work!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
This was not supposed to work!
Divers
Thread ID:
00455201
Message ID:
00455201
Vues:
69
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform