Focal Point
How to deactivate variables?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7951067331

October 28, 2003, 09:18 PM
Vivian
How to deactivate variables?
I am trying to deactivate local variables in WebFocus 5.2.1 under windows 2000. Anyone know exactly how to do this? I don't want them to be blank or spaces, I want them to no longer exist.

Thanks,
Vivian
October 28, 2003, 09:33 PM
Mikel
In previous versions, the following example works fine:

-* Variable setting.
-SET &VAR = 'ABC' ;

-* Variable deactivation.
-SET &VAR = ;

-* Error because &VAR doesn't exist.
-TYPE VAR = &VAR

Regards,
Mikel
October 29, 2003, 03:34 PM
Vivian
thanks Mikel - I tried that but when I did a ? & the variable still showed up in my list; however, the good news is that I solved my problem without deactivating variables.

I would still like to know how to make it not show up on the list. There was at one time a limit to the number of variables (global + local) that were allowed.

vivian
October 29, 2003, 04:16 PM
<kiddpete>
Vivian,

The answer Mikel provided is correct, but the deactivation does not occur until the focexec ends. Thus, deactivating & variables doesn't do much good. However, deactivating && variables is quite effective since they do survive after the end of the focexec. Many of my applications use this technique to minimize the number of & and && variables in use within a Focus session.