LockPS

This forum is for eXpress++ general support.
Post Reply
Message
Author
c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

LockPS

#1 Post by c-tec »

Hello,
I have sometimes a problem when leaving a dialog. I write messages in a text static in this dialog. When I close the dialog this object should not be available anymore, I check this in my function for setting the caption. But it seems that the object is still available, but has a wrong status for setting the caption.
I get the the attached message when closing the dialog.

this is my code for setting the caption:

Code: Select all

if upper(VALTYPE(oMSGSAY2)) = "O"
        oMSGSAY2:setcaption(XTOC(cMsg))
how can I check the status of the object for changing the caption ?

regards
Rudolf
Attachments
lockps.jpg
lockps.jpg (29.05 KiB) Viewed 6939 times
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: LockPS

#2 Post by rdonnay »

IF oButton:status() > 0
.. set the caption
ENDIF
The eXpress train is coming - and it has more cars.

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: LockPS

#3 Post by c-tec »

Hello Roger
thank you !
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

Post Reply