May 07, 2024, 02:55:17 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Reverse String?

Started by Tony, December 18, 2008, 06:05:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tony

December 18, 2008, 06:05:21 AM Last Edit: December 18, 2008, 06:12:37 AM by Tony
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

Copex

-
I really should learn how to use a spell checker! though im not sure how it will help someone who can not spell?
-
Except where otherwise noted, content Posted By Copex is
licensed under a Creative Commons Attribution 3.0 License

http://creativecommons.org/licenses/by/3.0/

Tony

Hey Copex,

Thanks for the info. :)

Tony.