OnFAYTClose()?

Good day everyone.
I'm wondering if there's currently any way to detect when the FAYT field in a FAYT script is closing? If not, could there maybe be an event or something similar for that?

The reason I'm asking is that I'm using a script that makes heavy use of script vars for caching (so it can potentially take up quite a bit of memory), and since those aren't needed afterward, I don't want them hanging around taking up space. One ideal moment to clear them would be when the FAYT field has closed.

1 Like

We'll add that in the next beta.

1 Like

Hi.
Hijacking the thread with a somewhat related question: Are tab vars really attached to tabs?
Since in a FAYT script I store vars at the tab level (newTab.vars.Set("DynGrpId", seqId); newTab.vars("DynGrpId").persist = true;). If/when the tab is closed (from code or user action), the variables are also disposed?

Yes they belong to the tab; close the tab, lose the vars.

1 Like