Re: Win32Lib RichEdit suggestion
- Posted by Kat <gertie at PELL.NET> Mar 24, 2001
- 409 views
On 24 Mar 2001, at 13:09, Derek Parnell wrote: > > > Aku wrote: > > > Why I can't use getText for RichEdit, I must use getRichText. > > > > It's better to use getText for RichEdit, but keep getRichText. > > getText(id) does work for RichText already. It returns the *selected* text > from a RichEdit control. The getRichText(id,range) is used when you need to > get > text other than what the user has selected. > > Because they take different parameters, it would break existing code to make > getText work the same as getRichText. Even if you had it accept all the passed parms as a sequence or object, and counted the number of parms to determine what the programmer intended? function x(sequence data) If (length(data) = 4) then -- they want this elsif (length(data) = 3) then -- they want to do this else abort(1,"wrong number of parms in function x!") end if Kat, puzzled about this.