Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a property by reference???
Message
De
20/08/2001 07:51:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00546079
Message ID:
00546106
Vues:
12
>I didn't want to use the return for some reason and too lazy to reference a local variable before I call the function; but thanks anyway!!!

Probably it would be easier to pass a reference to the form as a parameter. Then, in the called form / function, you can change any property.
Button on the calling form:

do MyFunction with ThisForm

In MyFunction:

lparameters toForm
toForm.AnyProperty = AnyValue
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform