home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 13
/
mediashare_13.zip
/
mediashare_13
/
ZIPPED
/
NETWORK
/
GP25.ZIP
/
EXT.PRG
< prev
next >
Wrap
Text File
|
1992-08-13
|
429b
|
17 lines
* The purpose of this function is to return the file extension of a
* path\file name specified
parameter M_Name
if type('M_NAME') <> 'C'
return .f.
endif
m_Name = alltrim(upper(M_Name))
if '\' $ m_name
* this handles the possibility of directory names with '.'s in them
m_name = substr(m_name, rat('\', m_name) + 1)
endif
if '.' $ m_name
return substr(m_name, at('.', m_name) + 1, 3)
else
return ''
endif