Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Will editing vcx class and classloc fields cause problem
Message
From
11/11/1999 13:23:30
 
 
To
11/11/1999 12:45:05
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00290185
Message ID:
00290208
Views:
25
>I did something very stupid in an initial design -- inherited the textboxes in my grids (hand painted) directly from the base textbox class.
>
>Naturally I ran into some global changes I wanted to make and looked with horror at the prospect of dropping and adding each textbox in each grid. After looking at programatic changes I came up with a simple solution. I opened each vcx, and did a global search and replace of class and classloc wherever class equaled textbox.
>
>(Yes I made an extra backup before doing this.)
>
>I recompiled my project, with the flag set to recompile all, and so far everything works fine.
>
>I still worry,though. Just how dangerous is it to mess directly with the vcx in this manner? I probably had no choice in this matter. When you do something as bonehead as that, I doubt there are any "safe" solutions. But being able to do this kind of global redefine is actually quite handy. How ready should I be to use this type of solution in the future?

I use it all the time when I accidentally instanciate a control from the wrong class and don't realize it until later. Just got to make sure you do it right.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform