Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Md is a function
Message
From
21/07/2014 05:49:22
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/07/2014 05:17:54
Antonio Lopes (Online)
BookMARC
Coimbra, Portugal
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:
01604227
Views:
63
>Dragan, it's not a function, but commands like MD that expect a name as their argument, such as MD babla, may be given an expression instead if enclosed in (). So, when you issued MD("blabla") you actually commanded the interpreter to evaluate "blabla" and set it as the parameter of the command. For instance, MD ("bla" + CHR(98) + "la") would have create the same folder (as would MD blabla).

Right. And the parser just treats it as a name expression, regardless of function-like syntax, simply because it's a command. Just like using a name expression with the select command, where the syntax checker or intellisense or whatever will remove the space between the command and the parenthesis, yet behave as if the space was still there.

Looks like a function, but doesn't quack like one, doesn't walk like one, so it isn't.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform