Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Broken Types?
Message
From
06/10/2005 11:34:48
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
05/10/2005 12:19:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01055653
Message ID:
01056790
Views:
22
>Well that makes sense now, but it is still misleading!

SQRT() will error out right away - because it checks for parameter type (and range - it will error out on negative as well). So should you do when you write a function. VFP will not do that for you, because it can't know what restrictions on parameters you may want to have.

While in some other languages you need to write a separate version of the function for each type of parameter (and combinations thereof if there are many), in Fox you can pass anything to any function you wrote. This also means you can write functions which work on multiple types of parameters, pretty much like the between() or inlist() can accept parameters of any type.

One such function which many of us had to write converts anything into string.

back to same old

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

Click here to load this message in the networking platform