Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Odd bug with semi-colon
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00508472
Message ID:
00508477
Vues:
20
>>The following Create Cursor statment does not execute (in some circumstances...at least), is due, I think to the semi-colon at the end of the first line. However, since the asterisk is supposed to comment out the first line, I'm thinking this maybe is a bug?
>>
>>* CREATE TABLE temp2 FREE(tmpPrjID c(13),;
>> CREATE CURSOR temp2 (tmpPrjID c(13),;
>> tmpPrjName c(30),;
>> tmpAppName c(40),;
>> tmpCommit N(10,2),;
>> tmpExpend N(10,2),;
>> tmpBalance N(10,2))
>
>Yep, and this is fairly well known. Part of the problem is that the syntax coloring fails to note that the lines following the first are considered by the compiler as continuations. Since the first line is a comment, the remainder are as well.

It was noted in VFUG Newsletter quite recently...

Also I would put a space between comma and a semi-colon. You don't have to, but it increases the readability...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform