Hello,
I have problem with assignEditorByName() in javascript.
If I use it like this
ed = newEditor ();
ed.assignEditorByName("D:\path\Bratislavský.csv");
I get error Microsoft JSkript - chyba počas práce Module:MyModule Line:x
Pos:y
Description: Počas operácie automatizácie sa nenašiel názov súboru alebo
triedy.
Briefly: filename or classname not found
I have tried check it by assignEditorByIndex and it looks like it cannot compare
string with filename right.
for (i = 0; i < 7; i += 1) {
ed.assignEditorByIndex(i);
if (ed.fileName() == "D:\path\Bratislavský.csv") {
logAddLine("Filename [" + i + "]");
exit;
}
logAddLine("Filename [" + ed.fileName() + "]");
}
How to solve it?
Thank you.
--
<https://forum.pspad.com/read.php?2,72730,72730>
PSPad freeware editor https://www.pspad.com