Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is PARAMETERS?
Message
From
24/08/2001 11:36:32
 
 
To
24/08/2001 09:51:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00548260
Message ID:
00548695
Views:
8
>>There is, so far as I can tell, no difference between PROCEDURE and FUNCTION except convention. Try this:
>
>Nancy, I agree with this. I could see no difference whether you declare something as a PROCEDURE or as a FUNCTION. So I usually declare everything as FUNCTION, whether there is a return value or not.

I think another convention seems to be using PROCEDURE for methods, whether or not they return values.

>
>Let's not forget, however, that there is a big difference dependent not on the way you declare your functions, but on the way you call them:
>
>MyFunction(par1, par2) will pass parameters by value.
>
>DO MyFunction with par1, par2 will pass parameters by reference.
>
>This is independent of whether you declared MyFunction as function or procedure.

By default, yes. Again, it's not difference in FUNCTION or PROCEDURE, as you point out.
Previous
Reply
Map
View

Click here to load this message in the networking platform