PutBinary

<< Click to Display Table of Contents >>

Navigation:  Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods >

PutBinary

Declaration

Procedure PutBinary( sField: String; Buffer: PChar );

Description

Stores a binary value in a memo field. This value may contain NULL (ASCII 0) values. These values can later be retrieved using GetBinary.

Parameters

sField: The name of the memo field to store the binary value.

Buffer: A pointer to the binary value.

Delphi Example

procedure TForm1.Button1Click(Sender: TObject);

var

 cpVar: PChar; 

 sVal: String; 

 iSize: Integer; 

begin

 iSize := ApTbl.FieldWidth( 'PASSWORD' ); 

 ApTbl.Edit; 

 sVal := ApTbl.Encrypt( PChar(Edit1.Text), 'FooBar', iSize ); 

 ApTbl.PutBinary( 'PASSWORD', PChar( sVal ));

 ApTbl.Post; 

end;

See Also

GetBinary, PutBlob, GetBlob, Replace, Using Memo/BLOB Fields