|
-
May 21st, 2001, 10:14 AM
#1
strings
I am reading information from a stored procedure.
A field that is returned contains either spaces or a string. what i would like to do is if the string contains characters then trim it and if contains just white space then ingnore it. how can i check if the string is just blank spaces?
Thanks!
-
May 21st, 2001, 10:21 AM
#2
Re: strings
trim it and check the length.
if len(trim(MyString)) = 0 then ' ignore it
Iouri Boutchkine
[email protected]
-
May 21st, 2001, 10:23 AM
#3
Re: strings
Also you must check if it has spaces
for i = 0 to len(MyString)
'check here if each char is not a space
next i
Iouri Boutchkine
[email protected]
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
|