Mike Yearwood
Toronto, Ontario, Canada
General information
Category:
Coding, syntax & commands
Environment versions
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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only