Hi,

I am coding some filesystem functions in ECMAScript uilizing
java.io.File.

Reading filenames from directories and renaming files is working fine,
but the most simple function is not working (or better it can not be
saved)

function deleteFile(fileName){

file =jFile(fileName);

try
{
jFile(file).delete();
}
catch(exeption)
{
return exeption
}
finally
{}
return '0';
}

Designer comes up with an error in the line containing
jFile(file).delete() reading "Missing name after . operator"

Digging into this it seams that I can put anything behind the dot (.)
bun not "delete"

Any ideas?

Fur sure I have an line var jFile = java.io.File at the beginning of my
ECMAScript and I am using jFile(filename) in my other functions like
getFileNames (.listFlies()) or remaeFile (.renameTo()) without any
trouble!

Regards,

Thorsten


--
tschloesser
------------------------------------------------------------------------
tschloesser's Profile: https://forums.netiq.com/member.php?userid=3232
View this thread: https://forums.netiq.com/showthread.php?t=56325