|
|
Return to thread listing
| Kimsanee - 4 March 2005 at 12:43 AM (EST) |
Is there a way to use a variable that gets changed in the main process for an external subroutine?
Main process:
setVar $i 1
WHILE ($i < 10)
--stuff--
add $i 1
END
external subroutine:
:Top
echo $i (I want this to be the one from the main process)
goto :Top
|
| SupG - 6 March 2005 at 9:01 AM (EST) |
untested but try
echo $~i
not sure if it works, but i thought i saw Xide give an example of the sort in a previous thread.
SupG
|
| Kimsanee - 11 March 2005 at 4:56 PM (EST) |
Thanks SupG, but no-go. It finally occured to me that if I create a menu with the main and setMenuContents with it I can getMenuContents with an external. Thats a whole lot cleaner than what I thought I would have to do, write a temp file to disk just to pass data :(.
Kimsanee
|
|
|
|