IonicWind Software

IWBasic => The Roundtable => Topic started by: Tony on December 18, 2008, 06:05:21 AM

Title: Reverse String?
Post by: Tony on December 18, 2008, 06:05:21 AM
It would be nice to have a built-in REVERSE$ function in EB, unless of course there is  one already and I've overlooked it. Yes, I know we can roll on own as illustrated below, but it would be another feature that EB could boast about. :)

OPENCONSOLE

DEF Counter:INT
DEF TestStr,NewStr:STRING

TestStr="Emergence"
NewStr=""
FOR Counter = LEN(TestStr) TO 1 STEP -1
NewStr=NewStr+MID$(TestStr,Counter,1)
NEXT Counter

PRINT NewStr

while INKEY$=""
wend

CLOSECONSOLE

END
Title: Re: Reverse String?
Post by: Copex on December 18, 2008, 10:49:08 AM
Hi

Have a look at this.

http://www.ionicwind.com/forums/index.php/topic,1661.0.html

you could add it to EB yourself
Title: Re: Reverse String?
Post by: Tony on December 18, 2008, 03:19:21 PM
Hey Copex,

Thanks for the info. :)

Tony.