Results 1 to 4 of 4

Thread: Dialog Box

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2003
    Location
    Georgia
    Posts
    32

    Dialog Box

    How can I return the filename and not the whole path? I have inserted my code below.

    Sub GetFileName()
    Dim filename As String
    Dim result As Integer

    cdGetFileName.DialogTitle = "Select Fence Picture"
    cdGetFileName.Filter = "JPEGS (*.jpg)|*.jpg|All Files (*.*)|*.*"
    cdGetFileName.InitDir = App.Path & "\images"
    cdGetFileName.ShowOpen
    txtPhotoPath = cdGetFileName.filename

    End Sub

  2. #2
    Fanatic Member
    Join Date
    May 2002
    Posts
    746
    FileTitle property.

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2003
    Location
    Georgia
    Posts
    32
    Thanks...

  4. #4
    Fanatic Member
    Join Date
    May 2002
    Posts
    746

    FYI

    This should really be in the General VB Coding Questions forum.

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