Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find out if parameter was passed by ref
Message
From
24/04/2002 10:51:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00648668
Message ID:
00648687
Views:
28
You could pass an additional parameter from one method to another, to indicate whether the other parameters were passed by reference or by value. If you need to do this with several parameters, you can pass a string: "0010" ("third parameter was passed by value - all others by reference"). Default this to "reference" for all if no fifth parameter was passed - this seems to be safest.

I know of no other way to do what you want - specifically, using code only in the called method.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform