Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacing a grid in one class with another grid class
Message
From
26/05/1998 17:26:36
Louis Schwartz
Strategic Investment Partners
Arlington, Virginia, United States
 
 
To
22/05/1998 18:21:32
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00101332
Message ID:
00102133
Views:
20
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform