>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only