[Help with code] Load $var
Posted: 30 May 2016 00:45
The code:
As you can see, that's supposed to read a line in the .ini-file "<xydata>\xr\xr-conf-geral.ini", named "Zona" at the "Scripts" .ini-file session.
In the config file I set the key to "<xyscripts>\Zona.xys", so I would like to run the "Zona.xys" script-file.
But, when it tries to load $ax, it results the error:
Any idea?
Thanks in advance.
Code: Select all
"Zona...|<xyicons>\shapes\Boia.ico"
$ac = "<xydata>\xr\xr-conf-geral.ini"; $se = "Scripts"; $li = "Zona";
$ax = getkey("$li", "$se", "$ac", "1");
load "$ax", "", '"s"';In the config file I set the key to "<xyscripts>\Zona.xys", so I would like to run the "Zona.xys" script-file.
But, when it tries to load $ax, it results the error:
I understand that I could put just "Zona.xys" at the config file, 'cause "load" dows support full or relative path, but how could I make it to run fine this mood? I've tried eval() to the $ax, but it didn't worked.Script file '<xyscripts>\Zona.xys' not found.
load
<xyscripts>\Zona.xys
"s"
Any idea?
Thanks in advance.