Page 1 of 1
Empty blob field
Posted: Fri 23 Jan 2015 11:01
by jota
Hi
How i can define an empty blob field in TUniTable.InsertRecord([Key, blobfield]);
Thanks in advance
Re: Empty blob field
Posted: Mon 26 Jan 2015 09:02
by AlexP
Hello,
To insert NULL to a Blob field, you can use the following code:
Code: Select all
UniTable1.Open;
UniTable1.InsertRecord([1, null]);
// or UniTable1.InsertRecord([1]);
// or UniTable1.InsertRecord([1, nil]);
If UniTable1.Fields[1].IsBlob then
if UniTable1.Fields[1].IsNull then
ShowMessage('Field is Null');