uni
October 17th, 2001, 11:25 PM
does anyone know how to tell if a string is in a certain format .eg. ####/#####
thanks
thanks
|
Click to See Complete Forum and Search --> : format uni October 17th, 2001, 11:25 PM does anyone know how to tell if a string is in a certain format .eg. ####/##### thanks michi October 18th, 2001, 12:36 AM 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 srinika October 18th, 2001, 01:58 AM 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |