Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameters
Message
 
 
To
21/05/2009 17:04:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01401445
Message ID:
01402328
Views:
69
Add...

Set Compatible Off
to your calling program.

>>>Hi All:
>>>
>>>Consider:
>>>
>>>
>>>*Program test.prg
>>>
>>>SET UDFPARMS TO VALUE
>>>
>>>cc = '00'
>>>
>>>DO test2 WITH cc
>>>
>>>? cc   &&Displays '11'!!!!
>>>
>>>return
>>>
>>>
>>>
>>>*program test2.prg
>>>PARAMETERS dd
>>>
>>>dd = '44'
>>>
>>>@ 1,1 get dd  &&user enters '11'
>>>
>>>READ
>>>
>>>
>>>
>>>Why is the value of cc in test.prg changed to '11'? I thought that when UDFPARMS is set to VALUE, the value is not changed?
>>>
>>>Thanks,
>>>
>>>Yossi
>>
>>This also applies to calling functions, DO always pass parameters by reference.
>
>Thanks.
>
>Now, this leads me to my problem:
>
>In the program I am working on, I have a similar setup to the test and test2 combination. I have a wierd problem that I cannot duplicate with my test and test2 and that is that in my program, nothing appears in the GET field in test2 and regardless what the user enters, the value is '44'. Any ideas?
>
>Thanks,
>
>Yossi
Edgar L. Bolton, B.S. B.B.A.
Previous
Reply
Map
View

Click here to load this message in the networking platform