But, I didn't see it in the documentation. When creating a new variable in a function or main part of a program: temp : String[30]; Does the compiled code when run, automatically zero out the new variable temp? It either appears that is does, or the memory used in my apps was already zeroed to begin with.
Thanks again, Adam Oldham
----------------------------------------------------------------------- C. Adam Oldham Marconi Commerce Systems Inc. Software Engineer 7300 West Friendly Ave. adam.oldham@marconi.com Greensboro, NC 27420-2087 Phone : 336.547.5952 Fax : 336.547.5079 ----------------------------------------------------------------------- This document contains confidential information of Marconi Commerce Systems Inc. In consideration of the receipt of this document, the recipient agrees not to reproduce, copy, use or transmit this document and/or the information contained herein, in whole or in part, or to suffer such actions by others, for any purpose except with written permission, first obtained, of Marconi Commerce Systems Inc., and further agrees to surrender the same to Marconi Commerce Systems Inc. upon demand. -----------------------------------------------------------------------
Oldham, Adam wrote:
But, I didn't see it in the documentation. When creating a new variable in a function or main part of a program: temp : String[30]; Does the compiled code when run, automatically zero out the new variable temp? It either appears that is does, or the memory used in my apps was already zeroed to begin with.
Most OSs clear the memory allocated to a proccess (for security reasons), but don't rely on it. In general, any newly declared variable should be considered undefined. If you want it empty, do tmp := ''
Frank