Guest_imported
New member
- Jan 1, 1970
- 0
- 0
- 0
Help
Can anyone tell me how I can strip the initial spaces from an input string and store the remaining string. For example if "<space><space>Hello<space>World" is entered. I need to strip the first 2 spaces from the text to leave me with"Hello<space>World".
The code needs to be written as a void method ie
void TrimFront(AnsiString &Str)
and called by the main command "TrimFront(Line)" where Line is the original input String.
Thanks in advance
Can anyone tell me how I can strip the initial spaces from an input string and store the remaining string. For example if "<space><space>Hello<space>World" is entered. I need to strip the first 2 spaces from the text to leave me with"Hello<space>World".
The code needs to be written as a void method ie
void TrimFront(AnsiString &Str)
and called by the main command "TrimFront(Line)" where Line is the original input String.
Thanks in advance