|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Suppress spaces
Hi
This is an easy one. How do I skip over leading blanks in a string. For example, if I say... If UCase(Left(strString, 4)) = "FRED" Then ...I won't get a match if the string in " FRED" I just can't remember how you suppress the blanks around a string. Thanks Robert " |
|
#2
|
||||
|
||||
|
Use the Trim function and the spaces won't be there.
|
|
#3
|
|||
|
|||
|
Just to expand a little on memnoch's reply, there is also RTrim() and LTrim() which trims off just the right or left side of your string. None remove spaces embedded in the string, for that use Replace()
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Suppress spaces |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|