Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the class of an object
Message
 
To
08/02/2006 15:09:23
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01094757
Message ID:
01094796
Views:
15
> Now, how can I go back and change all the textboxes on my forms
> to use this class?

Time to play! While there are tools available to do this, sometimes it helps just to go in to the file and see how it works. For example,

For example, if you created a modified textbox called myTxt, and put it in classlib.vcx:

Use [my.scx|my.vcx] alias 'my'
UPDATE 'my' SET class = 'myTxt', classloc = 'classlib.vcx' ;
WHERE classname = 'textbox'
Use in 'my'

Extremely dangerous! Also extremely cool to see it work! Have fun.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform