Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class creation off of a parent class. Name problems
Message
De
15/04/1998 08:19:25
Mark Kessler
U.S.M.C. - Network Operation Center
Quantico, Virginie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Class creation off of a parent class. Name problems
Divers
Thread ID:
00092086
Message ID:
00092086
Vues:
53
I created a class off of the class page. The problem is that when I use an addobject command I can't seem to use a variable to give it a name.

Example.

DEFINE CLASS mypage AS Page
Visible = .T.
PROCEDURE Click
...
ENDPROC
ENDDEFINE

itemp = str(thisform.pageframe.activepage)
var1 = "Page" + itemp

thisform.pageframe1.addobject(var1, 'mypage')


The reason bhind this is to keep creating a pagename with a higher number... so that no two page objects have the same name.

Does anyone know how to create new pages useing the new class above and would give it a unique name?

I need to keep the pages dynamic.
Mark Kessler
USMC Network Operation Center
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform