Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I return a value from the init method of a form
Message
 
 
À
19/07/2006 16:57:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Divers
Thread ID:
01137825
Message ID:
01137861
Vues:
13
>I use the frmkey form to retrive information about client
>in the Recherche method i check if i have more than one client with the same name
>if i found more than one client i show the form with a list of client and the user can select the client. In the unlod of the form i retun the client number.
>
>but if i fond only one client i dont nead to show the list of client i just nead to return the client number .

You can switch to form class. Add a property to the form, say, ClientID
loForm = newobject('myForm')
loForm.Show(1)
lcCLientID = loForm.cClientID
loForm.Release()
when in the close button you would have thisform.hide() instead of release.

Another simpler idea is to pass an object to the form. Then you can change object's properties.
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