Results 1 to 2 of 2

Thread: delete char from string?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    292

    delete char from string?

    Hi,everyone.

    How can i delete a character from a string.

    for example, i want to delete the character "<" from the following string:

    this is<what< i want

    This is possible using the replace function, but using it, will delete all the "<" in the string,and what i want is to delete only one char "<" in the string, so i think the replace function will not be usefull here,rigth?

    Thanks a lot .

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: delete char from string?

    VB Code:
    1. Dim MyString As String
    2. MyString = "<what what< i want"
    3. MyString = Replace(MyString, "<", " ")

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