HELPLIB.HLB  —  PASCAL  Predeclared Routines, Allocation  SIZE
  The SIZE function returns an integer value  that  indicates  the
  possible  or  actual  number  of  bytes that are allocated for a
  specified data type or variable.

  Syntax:

     SIZE( x[[,t1,...,tn]] )

  The parameter 'x' can be a type identifier or  a  variable.   If
  'x'  is  a  type  identifier, then SIZE returns an integer value
  which indicates the number of bytes that would be allocated  for
  a variable or record field of type 'x'.

  If 'x' is a variable, then SIZE returns an  integer  value  that
  indicates  the  number  of  bytes  that  are  allocated for that
  variable.

  In the case where the parameter 'x' is a variant record variable
  or  variant  type identifier, SIZE returns an integer value that
  indicates the number of bytes that are allocated (for a  variant
  record  variable)  or  would  be  allocated  (for a variant type
  identifier) for both the fixed portion of  the  record  and  the
  largest   variant.    In  addition  you  can  supply  additional
  parameters t1 through tn that correspond to the case  labels  of
  the  record.   The  SIZE  routine  returns an integer value that
  indicates the number of bytes that would be allocated by the NEW
  procedure for a dynamic variable of the specified variant.
Close Help