advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Controls Details
  Summary  Details                           Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 Usage Notes
   ■ A default-size form with no controls takes up approximately 96 bytes of
     memory. You can use the FRE function to approximate the amount of memory
     used by controls placed on your own forms. For example:
 
         SUB Form_Click ()
              Loaded! = FRE(-1)
              UNLOAD Form1
              Unloaded! = FRE(-1)
              SHOW
              PRINT STR$(Unloaded! - Loaded!)
         END SUB
 
   ■ You can write an event procedure similar to the one above to determine
     the amount of memory used by a given control before and after placing
     that control on a form. For example, if:
 
         A = Size, in bytes, of default form with no controls
         B = Size, in bytes, of form with one control
 
     then:
 
         B - A = Amount of memory, in bytes, used by the control
 
   See: FRE Function