Subject filter switch problem
From Charlie <tm@tc.com>
Date Wed, 16 Dec 2020 03:49:00 -0500
Newsgroups dbase.getting-started

The following works fine except after you first open the form you have to push the button twice.  First attempt does nothing.  From then on it does fine.  Thanks!

   function PUSHBUTTON5_onClick()
      if not this.text = ' Hide OK '
                   form.master1.rowset.filter = "audit = 1"
         this.text = ' Hide OK '
      else
                   form.master1.rowset.filter = "audit = 1 and inv_ok # true"
                        this.text = ' Show OK '
      endif