Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid behavior only works once ???
Message
From
07/01/2005 02:39:23
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
MySQL
Miscellaneous
Thread ID:
00973249
Message ID:
00974979
Views:
31
Hello Barbara

I check thisform.l_wasdoubleclicked at unload of my searchform form2.
I use this technik when the possible values for a field in form1 are to much to offer then in a combobox. (adressno, customerno both more than 100000 for example)
In this cases we have a search button in form1 that calls the serchform2 with a parameter.
The user can search for name,street,zipcode ....
In the after rowcolchange event of the resultgrid i put the key of the current record in a variable. (wantedvalue = resultcursor.fieldxxx)
If the user only searches, clicks in the resultgrid and closes form2 manualy,we return nothing to keep the original value in form1.
If the user searches and doubleclicks on a row in the resultgrid, we automaticly close form2
and the unload event returns the selected value (wantedvalue) to form1 where the original value (txtadressno.value,txtcustomerno.value) is overwriten.

Best regards
Albert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform