Changing file types (xls to csv)

Kladkul

Member
Whats the best way to change the file type of an input file?

Heres the situation: A user inputs a file (.xls or .csv), I need to convert to a .csv if they happen to input a .xls.

Right now I have a SYSTEM-DIALOG GET-FILE displaying for .xls or .csv and I assign the chosen file to a fill-in.
 

rainylsh

Member
I think you can use diffrent procedure by checking last 3 characters.
for example:
case substring(filename,length(filename) - 3,3) :
when "xls" then run procedure1.
when "csv" then run procedure2.
 

Kladkul

Member
That would work, but is there a way to just change the file type while the program is running rather then running 2 different procedures?
 
Top