Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp50 - SubClassing
Message
From
28/02/1997 04:31:57
 
 
To
27/02/1997 13:46:37
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00022292
Message ID:
00022357
Views:
35
>I have a form created with objects on it. Now
>I want this form to be subbedclassed from a
>class (form).
>Can I do it?

Yes, CHEAT and go into the .SCX file and HACK the file so that it says the form is a subclass and not a base form.

It's DANGEROUS and you should always have a backup...

You need to alter the ClassLoc and Class fields of the .VCX in the record that has the ObjName saying it's the Form (not the dataenvironment).
Use a RELATIVE path not an absolute path in the ClassLoc so that if you move the project any time - it still works.

I ought to make this part of an article in FoxTalk - it gets asked often.


To choose the default class that all forms are based on, use Tools|Options and change the settings on the Forms tab.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform