Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Small annoying bugs
Message
De
19/04/2005 07:45:54
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01005551
Message ID:
01006107
Vues:
20
>Fabio,
>
>Don't use inline comments and you will not have those problems. I, personaly, find programs with inline comments hard to read and maintain so I almost never use them.


I use this in developer process, when i want include/exclude a piece of code, without erase it:
SIMPLE EXAMPLE:
SELECT;
  FIELD1;
, FIELD2;
; &&, FIELD3;
, FIELD3;
Impossible with another way.

>
>>
>>ON ERROR
>>x= ; &&  test
>> 'ciao'
>>
>>* bug 1 :
>>
>>* ok
>>*x= ;
>> 'ciao'
>>
>>* 'ciao' is within a line comment, but editor don't show it correctly
>>
>>*x= ; &&  test
>> 'ciao'
>>
>>* bug 2 : the second ; is within a inline comment, but the compiler fire a error
>>
>>x= ; &&  test * ;
>> 'ciao'
>>
>>* workaround : reset the parser stack with a comment tag
>>x= ; &&  test ; ;;;;;;;;;; &&
>> 'ciao'
>>x= ; &&  test ; ;;;;;;;;;; *
>> 'ciao'
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform