Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Two classes with the same name of form
Message
 
 
À
09/05/2000 17:28:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00367864
Message ID:
00367910
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform