Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Object question
Message
De
04/08/2000 15:48:10
Jimmy Ditta
Twin City Electronics
Monroe, Louisiane, États-Unis
 
 
À
04/08/2000 15:39:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00401333
Message ID:
00401354
Vues:
16
>>>>If I use "Thisform.Grid(n).Column(n).Text1.value = fieldname", shouldn't what's in the field show up in that column?
>>>>
>>>
>>>Unless you built one yourself, Form objects don't have a grids collection.
>>
>>Sorry, on this particular form I have two grids...Grid1 and Grid2.
>>"Thisform.Gridname.Column(n).Textname.value = fieldname"
>
>
>Ok, then
>
>>If I use "Thisform.Gridname.Column(n).Text1.value = fieldname", shouldn't what's in the field show up in that column?
>
>Maybe, but that would be the wrong way to do it. If you want to replace the value of a field that the grid is bound to, then do a REPLACE on that field.
>
>
>>If I use "MyVariable = Thisform.Grid(n).Column(n).Text1.value", shouldn't MyVariable be the value in the textbox?
>
>Maybe, but that would be the wrong way to do it. If you want to assign the value of a field to a varaible, use the field itself.
>
>See the theme? Try to get away from trying to manipulating the value of bound fields in a grid, and deal with the underlying fields directly.

Youre right, I know. But with me it's never that easy - what I'm trying to do is more complex. The dropdown selection in the 1st column determines the rest of the data in the active row, and all this data is REPLACED into a fresh, empty cursor, which is the recordsource...Boom - next row active. I can almost see a big circle here.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform