Passing variables to exec function
Hello
I am using fscommand exec function from standalone to open external files on CD. I am also using html text and asfunction. So I have text fieds that have links that call asfunction and fscommand. It sounds complicated but here is the example:
Code:
MyTextField.htmlText = "<a href='asfunction:somefunction, openfile.exe'>Click me</a>";
function somefunction (arg) {
fscommand("exec", arg);
}
This doesn't work, fscommand will only work if I call it like this
Code:
fscommand("exec", "openfile.exe");
and not if I pass variables to it
Problem is that I have a lot of links in htmltext and would have to make separate functions for each. Is there a way to lunch exec with variables
thanks