Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I return a value from the init method of a form
Message
 
 
To
19/07/2006 16:57:14
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Miscellaneous
Thread ID:
01137825
Message ID:
01137861
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform