setBatchMode

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

setBatchMode

Gabriel Landini
I read some time ago that one should call setBatchMode only once in a macro.

Is is possible to overcome this?

For instance, if I run a macro with the setBatchMode true, and this calls
another macro that also uses setBatchMode, when the 2nd macro calls it false,
then this causes some problems in the calling macro.

Thanks in advance for any suggestions.
(Yes I am aware that I could embed the 2nd macro in the first one, but if
there is an alternative solution, it would be easier to maintain the macros
separately).

Regards

Gabriel
Reply | Threaded
Open this post in threaded view
|

Re: setBatchMode

Gluender-2
Gabiel,

you may use a flag if batchmode has been set and test whether this
flag is true in the macro to be called...

>I read some time ago that one should call setBatchMode only once in a macro.
>
>Is is possible to overcome this?
>
>For instance, if I run a macro with the setBatchMode true, and this calls
>another macro that also uses setBatchMode, when the 2nd macro calls it false,
>then this causes some problems in the calling macro.
>
>Thanks in advance for any suggestions.
>(Yes I am aware that I could embed the 2nd macro in the first one, but if
>there is an alternative solution, it would be easier to maintain the macros
>separately).
>
>Regards
>
>Gabriel

HTH

Herbie
Reply | Threaded
Open this post in threaded view
|

Re: setBatchMode

Gabriel Landini
Hi Herbie,

On Thursday 19 June 2008 14:17:22 Gluender wrote:
> Gabiel,
>
> you may use a flag if batchmode has been set and test whether this
> flag is true in the macro to be called...

Thanks! this gave me a further idea!
I can use  is("Batch Mode") and if true, not call the batch mode in the 2nd
macro.

Many thanks

Gabriel