Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Class at Code Level
Message
From
13/06/1999 19:50:33
 
 
To
12/06/1999 11:40:40
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00229145
Message ID:
00229303
Views:
17
>Is there any way to change objects class in a form (obviously not at run time), without deleting and recreating ALL the objects. Is teher any program to do that or any way to rewrite the code that comfors a form.
>
>Thank You

The class that the object is derived from is stored in the Class and Classloc fields in the scx file. You can use the scx file as a table and issue commands like:

REPLACE Class WITH "MyNewClass" FOR Class = "MyOldClass"
REPLACE Classloc WITH "c:\classes\NewClasslib.vcx" FOR Class = "MyNewClass"

There are several tools here in the files section to help you do this, but I find it easier to just do it manually. Whichever way you choose, be sure you make a backup first. Seriously.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform