Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Will editing vcx class and classloc fields cause problems?
Message
From
11/11/1999 12:45:05
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Will editing vcx class and classloc fields cause problems?
Miscellaneous
Thread ID:
00290185
Message ID:
00290185
Views:
56
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?
Thanks

Gar W. Lipow
Next
Reply
Map
View

Click here to load this message in the networking platform