Set Enabled

hi
i have a question
i have some Button in my form (CREATE_BTN,EDIT_BTN,DELETE_BTN,CANCEL_BTN,SAVE_BTN,EXIT_BTN)
i wanna DISABLE some of them when i open my form for first time , and ENABLE again when some Button clicked
i wrote these codes in WHEN-NEW-FORM-INSTANCE :
        go_item('CREATE_BTN');
        set_property_to_text(false); --this procedure Disable all TextItem
        set_item_property('exit_btn',enabled,property_true);
        set_item_property('edit_btn',enabled,property_true);
        set_item_property('del_btn',enabled,property_true);
        set_item_property('cancel_btn',enabled,property_false);
        set_item_property('save_btn',enabled,property_false);
        set_item_property('create_btn',enabled,property_true);

i have a problem with it when i run form , it work correctly but it shows me this message in StatusBar >> FRM=41032:Cannot ser ENABLED attribute of currect item CREATE_BTN.
i dont know what's the problem for, and i dont want to see it
plz help me to


Mahsa60Asked:
Who is Participating?
 
JankovskyCommented:
You have to go_item(<another item>); than you wanna disable or enable

       go_item('CANCEL_BTN');
       set_item_property('create_btn',enabled,property_true);
       go_item('CREATE_BTN');
        set_property_to_text(false); --this procedure Disable all TextItem
        set_item_property('exit_btn',enabled,property_true);
        set_item_property('edit_btn',enabled,property_true);
        set_item_property('del_btn',enabled,property_true);
        set_item_property('cancel_btn',enabled,property_false);
        set_item_property('save_btn',enabled,property_false);
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.