Thread: strlen + #e
View Single Post
  #6  
Old 01-25-2004, 11:52 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Quote:
Originally posted by R0bin
setstring tword,Blahblah;
for (i=0;i<strlen(#s(tword));i++) {
setstring tword2,#s(tword2)#e(i,1,#s(tword));
}

gives you

tword=Blahblah
tword2=BlahblahB

I dont know why it puts the B on thend, musta buggered up somewheres.
unset tword2; before the loop?
__________________
Reply With Quote