[task]

beasscript-logo-small

Allows Multitasking-Developement

The Script in this Area is executing in a parallel beas.exe - Task

 

1. Beas writes the file "paralleltask.src" in the temp-folder

2. a second beas.exe - Task is starting in invisible-mode and execute this paralleltask.src

 

In this way you can execute a large operation in a parallel task

If you set the placeholder before execution, do it in @@

 

Example

 

setvar=ll_max=1000

// parallel-Task

[task]

for ll_loop=1 to @ll_max@

 setvar=ls_test=<ls_test>,<ll_loop>

next

messagebox=<ls_test>

[/task]

// internal

for ll_loop=1 to <ll_max>

 setvar=ls_test=<ls_test>,<ll_loop>

next

messagebox=<ls_test>

 

both loops running on the same time

In the parallel-Task we set @ll_max@ because we will replace the placeholder before execution.

 

Important: Beas sets the command "app=close" automatically at the end of script.

But if you insert a return, then the line "app=close" can't execute and beas can't close.

 

Corret Script for Ending

 

[task]

if <ll_loop> = 10 then

// wrong:   return success

 // correct:

 app=close

end if

[/task]