May be I discovered a bug.

I have a for with a button that carried the following script:

button = hk_this
doit = show_yesnodialog("Open the form?", 0)
hk_this.show_warningmessage(str(doit))
if doit != int(0):
    button.set_action("open_form","Area")

The form "Area" should open if the user clicks on "yes", and not open if the 
user clicks "no".
It works as long as the user clicks only "no". Once the user has clicked on 
"yes" once, the form will always open, no matter whatever the user clicks 
subsequently.

In the property editor,  Action and Object is left empty, but by clicking 
"yes", these properties are set to "Open Form" and "Area" respectively, and 
this is apparently the reason why the form will always open. 

Is there a way to work around this problem?
Thank for your help.
Egbert


                
---------------------------------
 What kind of emailer are you? Find out today - get a free analysis of your 
email personality. Take the quiz at the Yahoo! Mail Championship.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Hk-classes-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hk-classes-discuss

Reply via email to