Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid behavior only works once ???
Message
 
À
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:
00975327
Vues:
29
>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.
>

I think your problem probably has something to do with l_wasdoubleclicked. You said in a previous message:

> then i changed the class mygrid
> at doubleclick of all textboxes i at a line
> thisform.l_wasdoubleclicked = .T.
> do thisform.whatnow
>
> now the grid in form2 works only once ????

Does this mean you added the line thisform.l_wasdoubleclicked = .T.? That's the way I interpretted that. If adding that line is what made this break, then I'd start looking at code that's run when l_wasdoubleclicked = .T. Without actually seeing your forms and the code, there's no way I can figure this out for you.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform