Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about ADDOBJECT
Message
From
29/04/1999 13:45:12
 
 
To
29/04/1999 13:32:29
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00213514
Message ID:
00213556
Views:
33
>>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
Map
View

Click here to load this message in the networking platform