Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid behavior only works once ???
Message
De
07/01/2005 02:39:23
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
MySQL
Divers
Thread ID:
00973249
Message ID:
00974979
Vues:
32
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
Fil
Voir

Click here to load this message in the networking platform