Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Line of code that works yet shouldn't
Message
De
05/07/2007 08:44:44
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
03/07/2007 06:50:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01237329
Message ID:
01237888
Vues:
20
>Hi guys
>
>This one is a bit weird. The following line(s):
>
>select space(1) as undump,space(1) as dumpcode,;
>  * from _fb2 where machine=='a' into table _ergdump
>
>
>in a prog I'm altering works. But, in editor, the second line shows up in "commented out" colours, as expected. It makes no difference if I move the * to col 1.
>
>Now I'd've thought it either takes the * to mean "all fields in the selected table", in which case the stipulation of the other fields should cause an error, or comment out the 2nd line, which should cause an error in the first line, with continuation ";" but no continuation.
>
>Now I don't know what the original programmer (and I use that expression reservedly) had in mind.
>
>Anyone shed some light on this?
>
>'ppreciate it
>
>Terry

Funtime:)
select "X" as dummy,maxordamt ;
  ** 2 as matSquared,;
  * from customer
Other programmer knew what he was doing but not bothered with syntax coloring which doesn't work right always.
PS: Second time as I remember I defend that guy:)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform