General information
Category:
Coding, syntax & commands
>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
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