Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Small annoying bugs
Message
From
19/04/2005 07:45:54
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01005551
Message ID:
01006107
Views:
21
>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'
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform