Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement