[task]

beasscript-logo-small

Allow Multitasking-Developement

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

 

1. beas write 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 large operation in a parallel task

If you set placeholder before execute, then set this placeholder 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 executing.

 

Urgent: beas set the command "app=close" automatically on 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]