RE: Clearing Text Box

new topic     » goto parent     » topic index » view thread      » older message » newer message

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
> > 
> >

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu