发表于2002/2/16 23:31:00 492人阅读
Determine the memory used by a DataWindow or DataStore
It is often necessary to know how much memory a DataWindow or DataStore is using to prevent an "out of memory" error or to facilitate debugging. When the memory usage is known, processing of data or the retrieval of data can be stopped when a maximum limit is reached.
To determine the amount of virtual memory used by a DataWindow or DataStore, the Storage attribute is used. It can be invoked from either of the two methods below:
Both cases return a string value in bytes of storage used.
NOTE - dw_control can refer to either a DataWindow or DataStore
An example usage would be: