Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Space Loop 1

Status
Not open for further replies.

hanchilicious

Programmer
May 23, 2002
156
0
0
GB
The title possibly makes this sound more intriguing a problem than it is.

I just want to loop through a string, inserting spaces every other letter, so that instead of reading:

THIS IS MY STRING

it reads

T H I S I S M Y S T R I N G

I'm using CR2008 on Oracle 10.

Thanks
 
Try This


Local NumberVar i;
Local StringVar String := 'THIS IS MY STRING';
Local StringVar Temp;

For i := 1 to Len(String)
Do(
Temp := Temp & String & ' ');

Temp

Gary Parker
MIS Data Analyst
Manchester, England
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top