Use ERASE to Reinitialize Array of User-Defined TYPE Records (31172)
The information in this article applies to:
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
This article was previously published under Q31172 SUMMARY
To reinitialize a user-defined record TYPE, each element has to be
reinitialized independently. Reinitializing each element is a lengthy
task if the record has hundreds of fields (for example, an application
using user-defined record TYPEs with GET# and PUT# with random access
files).
To quickly reinitialize a record of a user-defined TYPE, make it an
array and ERASE it when desired.
This information also applies to Microsoft Basic Compiler Versions
6.00 and 6.00b for MS-DOS and OS/2 and to Microsoft Basic PDS Version
7.00 for MS-DOS and MS OS/2.
Modification Type: | Major | Last Reviewed: | 11/18/2003 |
---|
Keywords: | KB31172 |
---|
|