Mike Yearwood
Toronto, Ontario, Canada
Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2008 Server
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement