|
-
Jun 25th, 2003, 02:40 PM
#1
Thread Starter
Member
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
-
Jun 25th, 2003, 02:46 PM
#2
Fanatic Member
-
Jun 25th, 2003, 02:52 PM
#3
Thread Starter
Member
-
Jun 25th, 2003, 02:54 PM
#4
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|