Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Change Desktop Property for New class Instance?
Message
From
19/08/2003 08:46:44
 
 
To
19/08/2003 03:51:28
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00821291
Message ID:
00821348
Views:
21
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform