project BLF > class bExternalControl > method CreatefcExternalControl

Description

Initialize a new record in class table tfcExternalControl.


Parameters


ic_ParentRowidinputcharacter= tfcExternalControl.tc_ParentRowid
bExternalControloutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror 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"
      &parameters = "input 'fcExternalControl':U,
                     output oiReturnStatus" }

    create t_sfcExternalControl.
    raw-transfer tfcExternalControl to t_sfcExternalControl.