Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Maximum Variables and the Drop Command

Keywords: maximum variables drop command

There are two types of memory: storage space for strings, and storage space for variables. The Drop() functions frees up both the storage space for strings and clears the variable.

Variables are dropped when the Entire WinBatch program is terminated. If you wish to drop variables sooner, use the DROP function. You may wish to drop local variables just before you exit from the subroutines. Here's an example of how to use it:

        aaa="Hello"
        bbb="World"
        Message(aaa,bbb)
        Drop(aaa,bbb)
        Message(aaa,bbb)   ; Now causes an error

Currently, our limit for variables is about 1000 variables and no limit on string spaces

Integers and floating point numbers generally do not use string space.

The Drop function was more useful in older version of WinBatch. Many of the ancient limitations have been remove and with the addition of arrays and user-defined functions (UDF's) in the 2001A version, the need for careful memory management has been greatly reduced.


Article ID:   W13906
Filename:   Maximum Variables and the Drop Command.txt