Sorry about the double posting of this thread, I got "click happy"
Ok, I've got my button added and am able to enable it or disable it with the isenabled() method.
Now lets say my form is up, my button is enabled on the toolbar. How do i disable the button on the toolbar from the form? (interactively)
appapplication.createstates
this.ostatemanager.DefineAction('Form Carry', 'zcarry')
thisform.isneabled
LPARAMETERS cMethod, cWorkArea
IF m.cMethod='zcarry'
DO CASE
CASE THISFORM.chkmy2.getvalue()=1
RETURN 3
CASE THISFORM.chkmy2.getvalue()=0
RETURN 1
ENDCASE
ENDIF
RETURN DODEFAULT(m.cMethod, m.cWorkArea))
thanks