Hi
How i can define an empty blob field in TUniTable.InsertRecord([Key, blobfield]);
Thanks in advance
Empty blob field
Re: Empty blob field
Hello,
To insert NULL to a Blob field, you can use the following code:
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');