Description
Keep handles to class temp-tables and their fields, to speed up reading and writing.
Parameters
ihDestinationBuffer | input | handle | Handle to the buffer of the temp-table that contains the components data. |
ihIDestinationBuffer | input | handle | Handle to the buffer of the temp-table that contains the components optimistic lock data. |
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
BLF
program code (program1/other.p)
assign oiReturnStatus = -98.
if not can-find (first tBufferFields where
tBufferFields.thTempBuffer = ihDestinationBuffer)
then do viFcCount1 = 1 to ihDestinationBuffer:num-fields:
assign vhDField = ihDestinationBuffer:buffer-field(viFcCount1).
if vhDField:help = "Calc#":U then next.
create tBufferFields.
assign tBufferFields.thDestinationField = vhDField
tBufferFields.thTempBuffer = ihDestinationBuffer
tBufferFields.tcFieldName = vhDField:name
tBufferFields.thIDestinationField = ihIDestinationBuffer:buffer-field(tBufferFields.tcFieldName).
end.
assign oiReturnStatus = 0.