Results 1 to 2 of 2

Thread: String ""

  1. #1

    Thread Starter
    Frenzied Member mxnmx's Avatar
    Join Date
    Dec 2001
    Location
    I'm back...now!!!
    Posts
    1,396

    String ""

    When a string is fed into a text box or a variable, does it go with the quotes "", is there any way I can remove them...so that if its: "mystring" it becomes mystring...

  2. #2
    Addicted Member
    Join Date
    Sep 2001
    Location
    Canada
    Posts
    202
    VB Code:
    1. sMyString = """MyString"""
    2.     sMyString = Replace$(sMyString, """", vbNullString, 1, 1)
    3.     If Right$(sMyString, 1) = """" Then
    4.         sMyString = Left$(sMyString, Len(sMyString) - 1)
    5.     End If

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