A related question is a question created from another question. When the related question is created, it will be automatically linked to the original question.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
How to pass task arguments(For statically craeted task)??
Hi, I have a task function and each time i want to send different parameters. So what is the best way to do??? Any way to pass arguments in "statically" created(filename.cfg) task??? I found that in case of SWI we use Swi_getAttrs() and Swi_setAttrs() ,So what in case of task???
You will have to create multiple tasks with the same task function but different params to achieve the functionality. It is not possible to change the parameters at runtime. In case of SWI, the registered function may be called multiple times per SWI but a task function is called only once per task. So even if the parameters of the task were to be changed at runtime, it wouldn't affect the task as the task would not enter the function from start again.