Results 1 to 2 of 2

Thread: CommonDialog Control

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    Chicago, IL
    Posts
    26

    Post

    Hello All

    I have a question about the common Dialog controls. Is there a way to get the directory after the showsave method is executed?

    Thanks!

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    Sure, use the FileTitle and FileName Values to Parse out the Directory, ie.
    Code:
    Private Sub Command1_Click()
        With CommonDialog1
            .ShowSave
            Caption = Left$(.FileName, Len(.FileName) - Len(.FileTitle))
        End With
    End Sub
    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Certified AllExperts Expert

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