|
-
Jul 9th, 2001, 08:38 AM
#1
Thread Starter
PowerPoster
What is the Code for a Space?
Is there a special code to detect a space in a string?
-
Jul 9th, 2001, 08:49 AM
#2
Hyperactive Member
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.....
-
Jul 9th, 2001, 08:52 AM
#3
Hyperactive Member
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.....
-
Jul 9th, 2001, 08:53 AM
#4
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
-
Jul 9th, 2001, 08:54 AM
#5
Thread Starter
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|