RE: Clearing Text Box
- Posted by Brian Broker <bkb at cnw.com> Oct 15, 2003
- 426 views
clear() is intended to clear *selected* text from an object. It's intended to be used as an editing procedure like copy, cut, paste, etc. Your problem is likely related to which control has focus. You should probably just setText(control,"") to avoid any such problems. -- Brian ronaustin wrote: > This program contains only two fields, Code and Desc. I get them > through > the SleText control. After the info is written out I want to clear > these > controls. I added the following to the process that writes out the > record: > > clear(Code) > clear(Desc) > > Only the Code control gets cleared unless after I enter the Desc I hit > TAB twice to highlight the Desc control. Then both fields are cleared. > What am I doing wrong?