|
-
October 17th, 2001, 11:25 PM
#1
format
does anyone know how to tell if a string is in a certain format .eg. ####/#####
thanks
-
October 18th, 2001, 12:36 AM
#2
Re: format
You can user InStr function.
=======
Dim lngPos As Long
Dim strTheString As String
lngPos = InStr(0, "/", strTheString , vbBinaryCompare)
if lngPos>0 then
MsgBox "Find!"
end if
=====
Regards,
Michi
-
October 18th, 2001, 01:58 AM
#3
Re: format
Check the String Using InStr & Mid Functions to see
Whether there is a "/" in the string
whether there r 4 characters before "/" and then there r 4 characters after "/"
U can use Split & Len also in this case
If u don't know how to Rate an answer, then Rate my answer to learn, If u know, then practice it 
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
|