Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Md is a function
Message
From
22/07/2014 10:25:53
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
22/07/2014 09:10:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01604225
Message ID:
01604300
Views:
55
>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
Map
View

Click here to load this message in the networking platform