Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: nested calls
I have not yet found a suitable WinBatch mechanism and request your advice.
The subroutine call is insufficient to develop state machines. I could store all global variables in a binary buffer and start the next WIL program with the run command, but I don't think that I should have to program my own global variables transfer mechanism; WinBatch should provide a solution. All other scripting languages I'm familiar with have a chaining mechanism.
It starts up and examines a state_flag (presumably set to an initial default value =1 ) and calls the routine responsible for that state (state1.wbt)
When state_1 is done, it sets the global variable state_flag and returns to the state controller, which then calls the next state.
This scheme only goes 2 levels deep.
Laura wrote:
>
> Here's a user request for the list:
>
> ---------------------------------------------------------------
>
> Subject: Program Chaining in WinBatch
> Date: Thu, 14 May 1998 23:51:03 -1000
> From: "Jacques D. Leibu"
Article ID: W13921
Filename: Set up a State Controller with Global Variables.txt
File Created: 1999:04:15:16:57:18
Last Updated: 1999:04:15:16:57:18