Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proc/Func
Message
From
05/05/2000 11:43:36
 
 
To
05/05/2000 11:24:23
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00366590
Message ID:
00366602
Views:
13
>Can anyone tell me the difference between a PROCEDURE and a FUNCTION.
>
>I thought there was a difference in FP/DOS, but doesn't apply with VFP?
>
>Any ideas?
>Thanks
>Kev

There is really no difference other than the syntax. The difference is in how they're called. If you create a PROCEDURE or FUNCTION named myRoutine, then if you "DO myRoutine" it's called as a procedure, but if you use "myRoutine()" it's called as a function. The main difference is that, by default, parameters are passed to procedures by reference but are passed to functions by value. You can override this behavior, see UDFPARMS for more info. Both can return a value.
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform