Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating Object
Message
From
18/04/2000 08:20:40
Chrita Lee
ProMOS Technology Inc.
Hsinchu, Taiwan
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00360786
Message ID:
00360789
Views:
12
>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
Map
View

Click here to load this message in the networking platform