Page 1 of 1

Script filters?

Posted: Mon Mar 12, 2012 2:18 am
by dfhtextpipe
Hi Simon,

If you have more than one script filter in a TextPipe filter, are they completely independent from one another?

If they both make use of global variables, must they use different variable names to avoid interfering with one another?

The help file does not address this question. Perhaps it should make this clear.

David

Re: Script filters?

Posted: Tue Mar 13, 2012 9:01 am
by DataMystic Support
Hi David,

We will make this clearer - but global variables are truly global (ie TextPipe.setGlobalVar( '...' ) ) and can be shared between script filters.

Re: Script filters?

Posted: Wed Mar 14, 2012 5:51 am
by dfhtextpipe
Thanks Simon.

As this potentially can give rise to pitfalls, the help needs to be very clear - preferably with some worked examples.

It may not be so obvious in some circumstances, as for example when a Link to TextPipe filter file (.fll)
is used more than once in a TextPipe filter, and where several of the external filter files happen to contain script filters.

David

Re: Script filters?

Posted: Thu Mar 15, 2012 2:26 pm
by DataMystic Support
Notes made clearer for v9.1. No worked examples as yet