Results 1 to 5 of 5

Thread: What is the Code for a Space?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    Talking What is the Code for a Space?

    Is there a special code to detect a space in a string?

  2. #2
    Hyperactive Member FATBOYPEE's Avatar
    Join Date
    May 2001
    Location
    Charleville (Ireland) Still. ANYONE GOT A JOB I CAN HAVE ? GIZA JOB. I CAN DO THAT....
    Posts
    463
    One you can use (though there may be other VB constants)

    Space(x)

    x being however many characters you want spaces allocation for.

    FBP

    Best Bar.....

  3. #3
    Hyperactive Member FATBOYPEE's Avatar
    Join Date
    May 2001
    Location
    Charleville (Ireland) Still. ANYONE GOT A JOB I CAN HAVE ? GIZA JOB. I CAN DO THAT....
    Posts
    463
    THICK, not reading it properly (fault I'm guilty of lately...must be this place..)

    I don't know of one to detect a space...(enlightenment equally sought), I'd just use the instr() function with the " " identifier
    or declare a constant equal to " "

    Best Bar.....

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Code:
    If InStr(TheString, " ")>0 Then
         MsgBox "There is a space in the string"
    End If
    'or
    If InStr(TheString, Chr$(32))>0 Then
         MsgBox "There is a space in the string"
    End If

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    yeah that' what I did too!

    thanks for the info though

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