project BLF > class bExternalControl > method CreatefcExternalControl
Description
Initialize a new record in class table tfcExternalControl.
Parameters
ic_ParentRowid | input | character | = tfcExternalControl.tc_ParentRowid |
bExternalControl | output | dataset | class dataset, containing only the newly initialized record |
oiReturnStatus | output | integer | error status |
program code (program/bexternalcontrol.p)
assign oiReturnStatus = -98.
empty temp-table t_sfcExternalControl.
empty temp-table t_sCustomTable0.
empty temp-table t_sCustomTable1.
empty temp-table t_sCustomTable2.
create tfcExternalControl.
assign tfcExternalControl.tc_Rowid = dynamic-function("GetNumberForNew":U in {&TARGETPROCEDURE})
tfcExternalControl.tc_Status = "N":U.
{ includes/bfcrun.i
&procedure = "InitialValues"
¶meters = "input 'fcExternalControl':U,
output oiReturnStatus" }
create t_sfcExternalControl.
raw-transfer tfcExternalControl to t_sfcExternalControl.