Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameter by Reference
Message
 
 
À
13/08/2008 13:45:31
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01338618
Message ID:
01338633
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform