|
-
Mar 30th, 2006, 07:35 AM
#1
Thread Starter
Member
i need help???
whats up there expert??? i m searching for the code whaere textbox1.text recognize the letter P01.pdf wethere it has space like
this P 01.pdf or campanied by this \my documents\P01.pdf as soon as P01.pdf only ?? some expert send me code .thanks
Last edited by info; Mar 30th, 2006 at 07:46 AM.
-
Mar 30th, 2006, 07:44 AM
#2
Re: i need help???
Send me code.
Use [code] source code here[/code] tags when you post source code.
My Articles
-
Mar 30th, 2006, 08:05 AM
#3
Re: i need help???
No one will just give you code like that. People here are to help you with your coding problems and not to give you code. But lucky for you, today i'm bored so heres some code.
VB Code:
If InStr(1, UCase(Replace(Text1.Text, " ", "")), "P01.PDF") > 0 Then
MsgBox "Found"
Else
MsgBox "Not Found"
End If
-
Mar 30th, 2006, 08:08 AM
#4
Re: i need help???
I read the question a different way. This will give you the file & extension with the spaces removed (on one ugly line, just to be obtuse):
VB Code:
MsgBox Replace(IIf(InStrRev(Text1.Text, "\"), Mid$(Text1.Text, InStrRev(Text1.Text, "\") + 1), Text1.Text), " ", vbNullString)
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
|