Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CREATEOBJECT('grid')
Message
From
14/02/2000 06:12:03
Juan Kh
Dataprop Technologies
Sungai Petani, Malaysia
 
 
To
12/02/2000 23:11:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00331459
Message ID:
00331654
Views:
13
>1. If I use ADDOBJECT() to addgrid into my container, the grid may not appear because its view only limited by the size of my container.

Thisform.AddObject('cGridName','grid') will work. Just programatically set the size to fit in the container. Set the visible to .T. too.


>2. If I use CREATEOBJECT() to add grid and store its reference into a property, the grid doesn't appear even i have set visible = .t..
>

You can't do this. The object you created does not "belong" to the the form. It is not a member of your form. Try issue ?_screen.ActiveForm.oGrid.Parent.Name (oGrid is your custom property that holds the reference to your grid object) in the command window, and it would tell you "PARENT" is not an object.

Hope this helps.

Juan
Previous
Reply
Map
View

Click here to load this message in the networking platform