Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid1.column1.text1.value not being evaluated in grid
Message
 
À
22/10/1997 19:16:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00056209
Message ID:
00056270
Vues:
145
>This is very strange and I'm sure I'm missing something simple here, but I'm new to VFP. I have a grid for user maintenance with an add/edit/save buttons below it. Records are displayed fine, add works fine, save works fine. But delete is another story--in the debug window I get the following while the code processes for the delete button click event: "Delete user " thisform.grid1.column1.text1.value show just fine as "Delete user ADMN ?", when I move the cursor to another record in the grid, text1.value says "expression cannot be evaluated" in the debug window, the only way to get text1.value to be proper value (field of userid) is to click directly in the column on the row I want to move to. Clicking on every field in the new row does nothing to change the value, then when I click the delete button again text1.value becomes the value of the last row I was at where I clicked directly into the column for userid. I've tried refreshing during before and after row changes, in the refresh
>event, resetting the focus, etc.
>
>I'm stumped on this one.
>
>Any help would be greatly appreciated !!!
Jace,

The only place that the textbox actually exists is in the cell that has focus. Try checking Alias.FieldName instead of the textbox.value, the record pointer will be on teh current record in the grid.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform