Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Curious problem with _TALLY after an SQL Select
Message
De
25/08/2005 17:45:37
 
 
À
25/08/2005 17:30:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01043776
Message ID:
01044106
Vues:
18
>>>>>>>>>Hi Sergey
>>>>>>>>>
>>>>>>>>>(sheepish grin)
>>>>>>>>>
>>>>>>>>>You're right - I've been bitten by the comments after problem again. I excised the comments for the post for brevity.
>>>>>>>>>
>>>>>>>>>Man, you're good! even finding errors when the example's not complete! :-)
>>>>>>>>>
>>>>>>>>>Thanks again
>>>>>>>>>
>>>>>>>>
>>>>>>>>This is a VFP bug, the ";" is within the comment and cannot join two lines.
>>>>>>>
>>>>>>>It's not a bug.
>>>>>>
>>>>>>Of course,
>>>>>>I know it that VFP works so by design,
>>>>>>and it is also comfort (enough a * to comment a multiline command),
>>>>>>but from the formal point of view it is an error.
>>>>>
>>>>>Formal point of view??????????
>>>>
>>>>To simplify (this is not set for discussing of grammars and formal languages),
>>>>do me an I list of languages where the character that links
>>>>more executable lines it also links more comment lines:
>>>>
>>>>VFP
>>>>****add here***
>>>VB6
>>>>
>>
>>Hi Jim,
>>I have been too much magnanimous:)
>>
>>Replay:
>>To simplify (this is not set for discussing of grammars and formal languages),
>>do me an I list of non dead languages where the character that links
>>more executable lines it also links more comment lines:
>>
>>VFP
>>****add here***
>>
>
>C
>
>/* comments here
>are continued until
>the comment
>is terminated */
>
>But that may be that there is no line continuation in C at all.

C is out of list!
It use a correct implementation for multiline comment ( block comment ):
startmarker
endmarker

Infact, on VB.NET the VB6's incorrect feature it has been suppressed.

Of course,
with such an awkward rule it is simple to write a code
that it sends in crisis the editor of VFP:
* see you the "? x" like a comment line ?
* not, but the program print 7 only!
x=6 && byby ;
? x
? 7
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform