General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only