Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Geting a file name 1

Status
Not open for further replies.

Sadoscar

Instructor
Oct 18, 2005
6
LT
Hi Everyone
I'm not eble to get the file name using the filedialog function, but i can get the path with :
" filedialog('select a parh',Var_path,,5)" Then i get the path in Var_path variable.
Would you like to help me to get the file name
 
Hi!

This is what I use :

IF FILEDIALOG('Choose Attachment File', ATC:FileName, 'Adobe PDF Files|*.PDF|Word Documents|*.DOC;*.RTF|Excel Documents|*.XLS;*.CSV|All Files|*.*', FILE:KeepDir+FILE:LongName)
DISPLAY(?ATC:FileName)

END

where FILE:KeepDir is EQUATE(2)
and FILE:LongName is EQUATE(16)

Check your variable var_path if it is long enough to hold the path and file name.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top