Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacing a grid in one class with another grid class
Message
From
27/05/1998 10:05:10
 
 
To
26/05/1998 17:26:36
Louis Schwartz
Strategic Investment Partners
Arlington, Virginia, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00101332
Message ID:
00102355
Views:
35
>>I created a form class which encompasses some other classes and a grid. I've added some code to several of the grid events and have already created about 4 forms with this form class. Now I have a grid class which I'd like to use to replace the original grid on the class. It seems to have what I was doing and much more. This new grid class is also based on grid. Am I going to run into problems with my forms if I replace the grid which is in my class with this new grid?
>>
>>I haven't done anything yet because I don't want to get into trouble.
>>
>>Thanks for any info on this.
>>
>>Sylvia
>
>
>I've done this several times. First back up all your forms, then you have to hack the VCX file by using it as a dbf. Look for the record that contains the grid record and change the class from grid to grdNew (your grids name). and the classloc which should be empty to yourclass.vcx then close the fiel and recompile. It should work fine.

Thank you all for your replies -
I did take the cautious approach this time and create a copy of one form to use the new grid class. But it gives me an idea for what to do next time.
Sylvia
Previous
Reply
Map
View

Click here to load this message in the networking platform