Unable to go to another stack in Windows
Posted: Sun Nov 02, 2008 8:49 am
Hi fellas!
I have a program that goes to a specified card in a stack. The standalone works just fine in Linux and OS X, but in Windows it does not work.
The code to obtain current path of a stack is:
-------------
on preOpenStack
global gPath
if gPath is empty then
put the filename of this stack into gPath
repeat while last char of gPath is not "/"
clear last char of gPath
end repeat
end if
end preOpenStack
-----------
And in a button the script to go to a card in the other stack is:
---------
on mouseUp
global gPath
answer gPath&"module3/module3"
close this stack
go to card 4 of stack gPath&"module3/module3.rev"
end mouseUp
---------
(The "answer" line was put for debugging info, and yes, the module3 directoy does exist, as well the stack named "module3.rev"...)
In Windows, the stack correctly go to "module3" stack, if run inside the IDE. But, if I make an exe standalone, the standalone does nothing. The answer line even puts correctly the path of the "module3" stack, but it does not go to the card requested. I even tried removing the line "close this stack", but the standalone does nothing with that change, too.
Why I can't go to the card of another stack in a Windows standalone? Am I missing something?
Thanks in advance,
Alex
I have a program that goes to a specified card in a stack. The standalone works just fine in Linux and OS X, but in Windows it does not work.
The code to obtain current path of a stack is:
-------------
on preOpenStack
global gPath
if gPath is empty then
put the filename of this stack into gPath
repeat while last char of gPath is not "/"
clear last char of gPath
end repeat
end if
end preOpenStack
-----------
And in a button the script to go to a card in the other stack is:
---------
on mouseUp
global gPath
answer gPath&"module3/module3"
close this stack
go to card 4 of stack gPath&"module3/module3.rev"
end mouseUp
---------
(The "answer" line was put for debugging info, and yes, the module3 directoy does exist, as well the stack named "module3.rev"...)
In Windows, the stack correctly go to "module3" stack, if run inside the IDE. But, if I make an exe standalone, the standalone does nothing. The answer line even puts correctly the path of the "module3" stack, but it does not go to the card requested. I even tried removing the line "close this stack", but the standalone does nothing with that change, too.
Why I can't go to the card of another stack in a Windows standalone? Am I missing something?
Thanks in advance,
Alex