Results 1 to 4 of 4

Thread: i need help???

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    50

    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.

  2. #2
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: i need help???

    Send me code.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  3. #3
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    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:
    1. If InStr(1, UCase(Replace(Text1.Text, " ", "")), "P01.PDF") > 0 Then
    2.         MsgBox "Found"
    3.     Else
    4.         MsgBox "Not Found"
    5.     End If

  4. #4
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    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:
    1. 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
  •  



Click Here to Expand Forum to Full Width