General information
Category:
Object Oriented Programming
>Hi:
> I created an object based on grid class. I want to display my grid object at run time, however, when I run my form the grid is not visible. Can any one tell me what is the problem with my codes below.
>
>**My Code**
>*// the grid will be display at run time.
>Public MyGrid && public variable
>MyGrid = CREATEOBJECT("Grid") && object based on grid
>MyGrid.ColumnCount = 2 && column count
>MyGrid.Left = 12 && left position
>MyGrid.Top = 12 && top position
>MyGrid.width = 320 && grid width
>MyGrid.Visible = .T. && set to visible
>
>Thanks
Try thisform.AddObject("MyGrid", "Grid") instead.
Chris Lee
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