Subject LOGICAL ERROR
From Mustansir Ghor <mustan31@hotmail.com>
Date Sun, 11 Mar 2018 09:52:59 -0400
Newsgroups dbase.getting-started

Dear

I seem to get confused many times use of 'this' object.  When following PBRCANCEL_onclick() is executed, there is change in value of form.eamount. Therefore function  Eamount-Onchange() will execute. On its execution what will 'this' refer to ?

Best Regards
Mustansir

function PBRCANCEL_onClick()
  form.eamount.value=0
   form.cbregname.setfocus()
return

function EAMOUNT_onChange()
        if this.value>0
         form.pbrcancel.enabled=true
         form.pbrsave.enabled=true
        else
         form.pbrcancel.enabled=false
         form.pbrsave.enabled=false
        endif
                
  return