Re: upper()
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 06, 2006
- 678 views
Kat wrote: > > On 6 Aug 2006, at 4:41, Derek Parnell wrote concerning: > Re: upper() > > > ------------------------------------------------ > > global function toUpperObj(object s) > > ------------------------------------------------ > > if atom(s) then > > return uc[s+1] > > else > > for i = 1 to length(s) do > > if atom(s[i]) then > > s[i] = uc[s[i]+1] > > else > > s[i] = toUpperObj(s[i]) > > end if > > end for > > end if > > end function > > attempt to exit a function without returning a value > > Kat, > still working on it...... Well I just knocked it up in a couple of minutes.. gee!!! Give some slack here okay! I suppose you can see the stupid error I made. And I suppose you fixed it already. I only tested the toLower function so that's why I missed it. No one is forcing you to use this faster function. I just thought I'd try to help; sorry for interrupting you. -- Derek Parnell Melbourne, Australia Skype name: derek.j.parnell