Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What means parameters
Message
 
 
To
29/04/2007 11:30:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01220881
Message ID:
01220900
Views:
26
>>>A function or procedure is a bit of code that can be called over and over again, to do some specific task. (FUNCTION and PROCEDURE is the same in VFP.)
>>>
>>
>>I think I saw an interesting page describing difference between FUNCTIONS and PROCEDURES at Sergey Berezniker's web-site, but it was later removed for some reason.
>
>AFAIK, the only difference is how it is called, i.e.:
>
>
>do MyFunc with SomeValue
>* vs.
>MyFunc(SomeValue)
>
>
>... but not in the definition as a FUNCTION or PROCEDURE.
>
>The difference in the sample code is that by default, in the first case variables are passed by reference, in the second case, by value.
>
>But, I think it doesn't matter whether the function is declared as a FUNCTION or as a PROCEDURE.

Yes, in VFP it doesn't really matter, though in general function should return a value and the procedure usually should not.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform