RE: Clearing Text Box
- Posted by Brian Broker <bkb at cnw.com> Oct 16, 2003
- 434 views
After re-reading your question (and noting the *if*) I guess it's not quite an alias for setText(control,"") but I still think you should leave it alone. What if I don't want to clear if nothing is selected? Then I'd need an extra check to see if anything was selected... -- Brian earlier I wrote: > > > No... then you are just making an alias for setText(control,""). Then > you'd have to write another function to do what clear() currently does > (clear_selected_text()?). Then to be consistent you'll have to rename > copy() to copy_selected_text() and cut() to cut_selected_text()... > > I'd just leave it. clear() works properly as documented. > > -- Brian > > Derek Parnell wrote: > > > > This is a poll. > > > > Would people like clear(SleText/MleText) to clear the whole field if > > nothing is currently selected in the field? > > > > -- > > Derek > > > >