Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Class
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00401974
Message ID:
00401984
Views:
18
Type: in the command window

Enter a class name and base it on grid and select a vcx file to store it in. You can name a new vcx if you are just starting to do alot of foxpro. Keep the vcx somewhere under your development directory(s) and you can keep adding to it and eventually add it to your framework.

With the class open you can add an array property by selecting new property from the class menu and enter myprop[1,1] then dimension it as needed. For the method(s) do the same and select new method. As far as columns go there is already a columncount property.

Don't forget, changing the recordsource of a grid will wipe out many of your property settings so you will need a method to reset those. Check Barbara P.'s tip in last months FoxPro advisor.

Oh, almost forgot, to add it to a form click the books on the form controls toolbar and choose your new library (vcx) and click on the new grid class and then click your form.
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Previous
Reply
Map
View

Click here to load this message in the networking platform