Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Two classes with the same name of form
Message
 
 
To
09/05/2000 17:28:53
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00367864
Message ID:
00367910
Views:
17
John,

You'll have to resort to using NewObject() everywhere instead of CreateObject() for the two classes so you can specify the classlib. Otherwise VFP will instantiate the first one that it finds in the current loaded class environment and it's kind of hit or miss which one you'd get without a ton of work on your part. If you are deriving forms from these two and you DO FORM them you should be ok because internally VFP uses the classlib name.

Your life would be easier if they didn't have the same name.

>What happens when two different classes contain a form with the same name? I have a framework class that contains the form named 'frmStatusBar' and foxfire has a class that contains the same name for a form.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform