Results 1 to 2 of 2

Thread: Common Dialog Question

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    29

    Question

    How do I return the Files Directory.

    .FileName returns dir and File name.
    .FileTitle returns just File name.

    Is there a way (w/o heavy String Manipulation) to just get the File Directory. Maybe something about CommonDialogs that I am missing, or just not seeing?

    If I have to do string manip, what would be the simplest way. I don't want to add too many more lines to the function.

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    As far as I know you are not missing anything.... there is no "Path" for the common dialog.

    Easiest way is this :

    Code:
    Dim sDir as string
    
    sDir = left(CommonDialog1.FileName,instrrev(CommonDiaglog1.FileName,"\"))

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