Appendix donor....

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

Hy,

I just read the HTML documents delivered with EU for the first time.

Here's proof that I'm stupid :
(In case you didn't know)

[I wrote this]
function add_place(sequence str)
sequence tmp
tmp=""
if length(str)=0 then
 str=repeat(" ",1)
else
 tmp=str
 str=""
 str=repeat(" ",length(tmp)+1)
 for a=1 to length(tmp) do
  str[a]=tmp[a]
 end for
end if
return str
end function


IS THE SAME AS :


function add_place(sequence str)
 return append(str," ")
end function


BUT!!!!
I haven't discoverd something like this :

[I wrote this]
function remove_place(sequence str,integer place)
if length(str)=1 then
 str=""
else
 if place=length(str) then
  str=str[1..length(str)-1]
 elsif place=1 then
  str=str[2..length(str)]
 else
  str=str[1..place-1]&str[place+1..length(str)]
 end if
end if
return str
end function

Mister R.Craig !
Did you forget it, or did you leave it away on purpose ?


Bye,
PQ
QC


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu