Difference between revisions of "DatabaseField.NativeValue"

From Xojo Documentation

 
Line 1: Line 1:
 +
{{Deprecated|version=2019r2|replacement=[[DatabaseColumn.NativeValue]]}}
 
{{PropertyBox
 
{{PropertyBox
 
| name=NativeValue
 
| name=NativeValue

Latest revision as of 20:11, 10 July 2019

Read-Only Property (As String )
StringValue = aDatabaseField.NativeValue

Supported for all project types and targets.

Used to get the values of fields in their native encoding. Useful for reading blobs from database fields. Use Value or StringValue to set Blob values in database fields.

Sample Code

Get the native value of a column in a RecordSet:

// rs is a RecordSet with a BLOB column called "FileData"
Dim data As String
data = rs.Field("FileData").NativeValue