Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing class in the form designer
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00517829
Message ID:
00517842
Views:
22
>>>Sometimes, I have to change my textbox class from my regular textbox class to my disable textbox class. When doing that, I have to drop the class on the form and copy everything from the old textbox to this one an then remove the regular textbox. Is there a faster way?
>>
>>Hi Michel,
>>When I need to do that, I use the scx/vcx as a table and change the class and classloc fields. I find that much faster.
>
>Yes, this is what I thought. What basically do you need to change over there?

Once you've located the correct record (usually a combination of objname and parent), change class to the class you want. i.e. txtfielddisable
You only need to change classloc if the classes are in different class libraries.

>Also, this made me think about the txtFieldDisable class. I remember there was some reasons I prefer to have it in its own class instead of just turning enable to .F. in the regular class. It's true it is a time saver when you build the form but when you need to change to either one or the other, it causes some additional steps. I remember there was another reason I did it.
Bill Armbrecht
VFP MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform