Skip to Content
Former Member
Jan 18, 2008 at 10:04 AM

Position of Character in a dynamically generated string


Hi all,

Can anyone tell me how I can find the position of the first character in a dynamically generated string, which has empty spaces preceding the 1st character.

For eg.,

" Hello World".

Here, the string Hello World is dynamic and in real time can be any string which the user might not know. In that case, how do I find out the position of the first character or find the number of spaces existing before I encounter the 1st character ?