>>I am using the addobject to add a grid to my form during run time. How can I control the position of the grid on the form in the code?
> >
> >Thanks a lot
>
>> Subclass the grid, change the positions, and save as class. Add this object to the form instead.
>> This is a neat way of also setting the column details and data source details for a grid and having it always retain these settings.
>> When you change your data source, remove/re-add the object!
>
>Thanks y'all, it really helps.
>
>Another question, how can I check if the object already exists, so I can remove and readd it when my recordsource changes?
>If Type("thisform.myobject")="O" and not isnull(thisform.myobject)
>=messagebox("Object exists")
>else
>=messagebox("Object doesn't exist")
>endif
Thanks Edward, will try that.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only