self()
Posted: 04 Mar 2019 09:32
I don't understand why I get different results from the following statements in the same script:
First results:
However, the results in Foo():
Please could someone explain.
Code: Select all
text self("file")."<br>".
self("path")."<br>".
self("base");
Foo();
function Foo() {
text self("file")."<br>".
self("path")."<br>".
self("base");
}
which is as I expect.C:\AppData\XYplorer\Scripts\Test.xys
C:\AppData\XYplorer\Scripts
Test
However, the results in Foo():
I see in the Help for self()C:\AppData\XYplorer\Scripts\Test.xys
C:\AppData\XYplorer
As info type file is returning the same results in the two calls, I do not understand why, when called from Foo(), types path and base are returning results as if there is no script file.file: current script file (empty if none)
path: current script file's path (app data if none)
base: current script file's base (empty if none)
Please could someone explain.