Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Object question
Message
From
04/08/2000 15:39:02
 
 
To
04/08/2000 15:34:54
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00401333
Message ID:
00401350
Views:
18
>>>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.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform