I am trying to write what i guess should be a simple program where i enter a string which may have spaces at the beginning and elsewhere and i have to print out the string with one word per line and no spaces. The basic part of the code I have so far is:
Line = ReadStringPr("Enter a line of text: "
for(Index = 0; Index <= Length(Line); Index = Index + 1)
if(Line[Index] != '')
WriteStringCr(Line);
Could anybody please give a newbie some pointers?
many thanks
Line = ReadStringPr("Enter a line of text: "
for(Index = 0; Index <= Length(Line); Index = Index + 1)
if(Line[Index] != '')
WriteStringCr(Line);
Could anybody please give a newbie some pointers?
many thanks