<< Click to Display Table of Contents >> Navigation: Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods > MemDealloc |
Declaration
procedure MemDealloc( cpBuff: PChar );
Description
Deallocate memory allocated by GetMemo.
Parameters
cpBuff: A pointer to memory that was returned by GetMemo.
Delphi Example
procedure Form1.Button1Click(Sender: TObject);
var
cpMemoText: PChar;
begin
if ApTbl.Empty( 'NOTES' ) then
Memo1.Clear
else
begin
cpMemoText := ApTbl.GetMemo( 'NOTES', 0 );
Memo1.SetTextBuf( cpMemoText );
ApTbl.MemDealloc( cpMemoText );
end;
end;
C++Builder Example
void __fastcall TForm1::Button1Click(TObject *Sender)
{
PChar cpMemoText;
if (ApTbl->Empty( "NOTES" ))
Memo1->Clear();
else
{
cpMemoText = ApTbl->GetMemo( "NOTES", 0 );
Memo1->SetTextBuf( cpMemoText );
ApTbl->MemDealloc( cpMemoText );
}
}
See Also