Results 1 to 4 of 4

Thread: String.Trim spaces and tabs [Resolved]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2001
    Location
    N42 29.340 W71 53.215
    Posts
    422

    Resolved String.Trim spaces and tabs [Resolved]

    I want to trim leading and trailing spaces AND tabs from a string.

    How do I specify both characters in the paramarray?

    e.g. strTmp = strTmp.Trim( ???? )

    i.e. how do I load a "paramarray" with a space and a tab char?

    Thanks, DaveBo
    Last edited by DaveBo; Oct 6th, 2005 at 09:35 AM.
    "The wise man doesn't know all the answers, but he knows where to find them."
    VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: String.Trim spaces and tabs

    (" "c, Convert.ToChar(9))

    I think.
    I don't live here any more.

  3. #3
    Fanatic Member MetalKid's Avatar
    Join Date
    Aug 2005
    Location
    Green Bay, Wisconsin
    Posts
    534

    Re: String.Trim spaces and tabs

    strTmp = strTmp.Trim() will get rid of any spaces, tabs, and returns automatically, if I recall.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2001
    Location
    N42 29.340 W71 53.215
    Posts
    422

    Re: String.Trim spaces and tabs

    Thanks, I just got this working

    strTmp = strTmp.Trim(" ", Chr(9))
    "The wise man doesn't know all the answers, but he knows where to find them."
    VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width