Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Change Desktop Property for New class Instance?
Message
De
19/08/2003 08:46:44
 
 
À
19/08/2003 03:51:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00821291
Message ID:
00821348
Vues:
22
>How Change Desktop Property for New class Instance?
>In this code messagebox executes only once.Why?
>
>publ frm,frm1
>frm=CREATEO('frm')
>frm.show()
>frm1=CREATEO('frm')
>frm1.show()
>define class frm as form
> desktop=(6=MESSAGEB('Desktop?',4))
> visible=.T.
>endefine

When you set a property in the header section of a class definition, it's evaluated once, the first time you instantiate that class. Subsequent instances of the class use the initial value.

To do what you want, you need to put the code in Init.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform