Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proc/Func
Message
 
To
05/05/2000 11:24:23
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00366590
Message ID:
00366603
Views:
20
>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

Kevin,

Ther is NO difference between the two VFP keywords PROCEDURE and FUNCTION. There is a difference between a procedure and a function, a procedure is called with the DO command and a function is called by putting parens at the end of the name as in;
DO MyRoutine && Calling a procedure

MyRoutine()  && Calling a function
Any PROCEDURE or FUNCTION in VFP can be called either way. With the function syntax the routine will return a value (Logical .T. by default). With the DO syntax any return value is ignored.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform