Results 1 to 4 of 4
  1. #1
    ppl2pass's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    804
    Reputation
    5
    Thanks
    111
    My Mood
    Amused

    Question [Help]String,Remove blanks[Solved]

    How would you remove a blank space from this line:

    Code:
                               hello world!
    the line would be
    hello world!

  2. #2
    MJLover's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Neverland
    Posts
    759
    Reputation
    33
    Thanks
    110
    My Mood
    Cheerful
    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 !!!

  3. The Following User Says Thank You to MJLover For This Useful Post:

    ppl2pass (04-25-2010)

  4. #3
    ppl2pass's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    804
    Reputation
    5
    Thanks
    111
    My Mood
    Amused
    thanks +rep works great.

    --
    nvm it worked.
    Last edited by ppl2pass; 04-25-2010 at 07:55 AM.

  5. The Following User Says Thank You to ppl2pass For This Useful Post:

    MJLover (04-25-2010)

  6. #4
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Spam removed.

    Marked Solved, don't post unless necessary and under 7 days.


     


     


     



    The Most complete application MPGH will ever offer - 68%




Similar Threads

  1. [Solved] [Help] String from Newbie
    By patrykusssek in forum CrossFire Help
    Replies: 1
    Last Post: 09-05-2011, 03:14 PM
  2. [Help]Determining if a string contains numbers.[Solved]
    By ♪~ ᕕ(ᐛ)ᕗ in forum Visual Basic Programming
    Replies: 5
    Last Post: 02-13-2011, 01:00 AM
  3. [Help]String to Hex[Solved]
    By ppl2pass in forum Visual Basic Programming
    Replies: 5
    Last Post: 04-27-2010, 07:55 AM
  4. [help]Convert String to Color[Solved]
    By mnpeepno2 in forum Visual Basic Programming
    Replies: 10
    Last Post: 04-02-2010, 01:08 PM
  5. [Help]Basic Text Box[Solved]
    By FlashDrive in forum Visual Basic Programming
    Replies: 3
    Last Post: 03-06-2010, 10:54 PM