A cell's, column's, record's, or table's data.
Usage
Set_Property(CtrlEntID, "OLE.Data", Text, Index)
Values
Text can contain anything.
Default: ""
Remarks
This only works in OI 10.
The Data property allows you to get and set the text for a cell, record, column, or the entire table. This mirrors the OI EditTable's DEFPROP property. Instead of passing the field and record like we do with the CellText property, this version uses the auxiliary parameter of Get_Property and Set_Property. To get or set the value of a single cell, do the following:
CellData = Get_Property(CtrlEntId, "OLE.Data", FieldIndex:@FM:RecordIndex) Set_Property(CtrlEntId, "OLE.Data", CellData, FieldIndex:@FM:RecordIndex)
To get/set only a record, pass 0 or "" for the Field:
RecordData = Get_Property(CtrlEntId, "OLE.Data", 0:@FM:RecordIndex) Set_Property(CtrlEntId, "OLE.Data", RecordData, 0:@FM:RecordIndex)
To get/set only a field (column), pass 0 or "" for the RecordIndex:
ColumnData = Get_Property(CtrlEntId, "OLE.Data", FieldIndex:@FM:0) Set_Property(CtrlEntId, "OLE.Data", ColumnData, FieldIndex:@FM:0)
And to get/set the whole table, pass 0 for both indexes:
TableData = Get_Property(CtrlEntId, "OLE.Data", 0:@FM:0) Set_Property(CtrlEntId, "OLE.Data", TableData, 0:@FM:0)
The purpose of this property is to allow the SRP EditTable to support databinding in OI 10.