Question[Help]String,Remove blanks[Solved]

Posts 1–4 of 4 · Page 1 of 1
[Help]String,Remove blanks[Solved]
How would you remove a blank space from this line:

Code:
                           hello world!
the line would be
hello world!
Quote Originally Posted by ppl2pass View Post
How would you remove a blank space from this line:

Code:
                           hello world!
the line would be
hello world!
Suppose this is a string:

Dim x as string = " hello world! "

You just have to use Trim function. It will trim the extra (Un-needed) spaces.

So final code will be:

[php]Dim x as string = " hello world! "
x=x.trim()
[/php]

Hope this helps !!!
thanks +rep works great.

--
nvm it worked.
Spam removed.

Marked Solved, don't post unless necessary and under 7 days.
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?