Results 1 to 2 of 2

Thread: Who have the best one???

  1. #1

    Thread Starter
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606

    Cool

    I have a text box,a dir and a drive on my form and
    i would like to know if someone have a little function to
    check if the path entered in the text box is valid,if not ask the user to create it and if he say yes:the dir should be on the new folder???

  2. #2
    Addicted Member
    Join Date
    Sep 2000
    Posts
    138
    Code:
    ---------------------------

    If Dir(Trim(Text1.Text),vbDirectory)="" Then
    If MsgBox("The directory does not exist. Do you want to create it?",vbYesNo+vbQuestion,"")=vbYes Then
    MkDir Trim(Text1.Text)
    End If
    End If

    --------------------------
    Visual Basic Professional 6.0

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