Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Md is a function
Message
De
22/07/2014 10:25:53
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
22/07/2014 09:10:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01604225
Message ID:
01604300
Vues:
58
>VFP parser should be more strict on this thinks, because this causes bloody practices, like using (and confusing) SELECT command and SELECT() function.
>
>Recently I saw code like this:
>
>SELECT("TABLE")
>
>IF SELECT("TABLE")
> (code)
>ENDIF
>
>So there are people that thinks that the function SELECT() can be used to select tables, when it really doesn't, but go explain that to hard-minded people.
>
>Surely there are some more commands/functions that have this.
>
>Sometimes developers make decisions in the believe that more combinations is better for the user, when it causes the contrary effect on good practices, readability of the code and understanding :-|

I agree with what you said! However, SELECT() returns a numeric indicating the workarea number of the specified alias. It doesn't return a T/F.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform