get_cur_filename()

Description


Returns the filename including path and extension for the currently open ecco file.

Examples


name=get_cur_filename()
s=name
while
string.find(s,'\\')~=nil
do
x=string.len(s)
z=string.find(s,'\\')
s=string.sub(s,z+1)
end
y=string.sub(s,1,string.len(s)-4)
msgbox(y)


This code snippet gets the current file name then strips the path and extension from the file name.

Related Rules


Rules