Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Procedure vs Function
Message
 
 
To
21/08/2006 09:36:32
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01147203
Message ID:
01147297
Views:
17
Jignesh,

Fundamentally the only difference in VFP is whether or not you want to use the return value. If you do you have to call it as a function.
* call as procedures
do proc1
do func1

* call as functions
? proc1()
? func1()

procedure proc1()
return 1

function func1()
return 2
You should also look at the help topic for UDFPARMS.

>I have never used function, but I use procedure and it is returning value every time when I call it.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform