Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameter by Reference
Message
 
 
To
13/08/2008 13:45:31
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01338618
Message ID:
01338633
Views:
13
>I get an error on this. What am I doing wrong?
>
>
>m.Success = .T.
>
>DO EligibilityValidation WITH ;
>	'NEW', ;
>	THISFORM.txtPat_No.Value, ;
>	DATE(), ;
>	@Success
>
Check this excellent blog on this topic
Difference between Function and Procedure

And also see Parameters passed by reference (Wiki Discussion)

For me the logical choice would be to have Success as a return code and call the procedure as a function

llSuccess = EligibilityValidation("New", ....)

Though the name of the function now will need to change also to better reflect it returns a status.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform