GetMem Procedure

Applies to TestComplete 14.40, last modified on April 22, 2021

The GetMem procedure allocates a memory block of the specified size.

Declaration

GetMem(VarSize) Parameters
Var [out] Required Variant
Size [in] Required Integer
Result     None  

Description

Allocates a memory block specified by the Size variable. The address of the specified block is specified by the Var parameter.

Parameters

The procedure has the following parameters:

Var

Returns the address of the allocated memory block.

Size

Specifies the size (in bytes) of the allocated memory block.

See Also

DelphiScript - List of Supported Routines and Variables
FreeMem
ReallocMem

Highlight search results