Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preserving grid properties
Message
From
20/03/2004 18:23:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Preserving grid properties
Miscellaneous
Thread ID:
00888244
Message ID:
00888244
Views:
45
Usually, I define a grid based on an alias which I can see at design and run time. However, I have a form where I am designing a grid but that grid will be bound on a cursor that I am defining in the Init() of the form. So, I have something like this:
MESSAGEBOX(ThisForm.ControlFile.Columns(1).ControlSource)
MESSAGEBOX(ThisForm.ControlFile.Columns(2).ControlSource)
which gives the proper field names. Then, I assign the grid to the cursor which I just created in the Init() of the form:
ThisForm.ControlFile.RecordSource='Control'
MESSAGEBOX(ThisForm.ControlFile.Columns(1).ControlSource)
MESSAGEBOX(ThisForm.ControlFile.Columns(2).ControlSource)
Both ControlSource are now empty. Anyone can tell me the trick to preserve the grid properties?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform