project QadFinancials > class BGLType > method CreateGLType

Description

Initialize a new record in class table tGLType.


Parameters


ic_ParentRowidinputcharacter= tGLType.tc_ParentRowid
BGLTypeoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bgltype.p)

    assign oiReturnStatus = -98.

    empty temp-table t_sGLType.
    empty temp-table t_sCustomTable0.
    empty temp-table t_sCustomTable1.
    empty temp-table t_sCustomTable2.
    create tGLType.
    assign tGLType.tc_Rowid  = dynamic-function("GetNumberForNew":U in {&TARGETPROCEDURE})
           tGLType.tc_Status = "N":U.
    { includes/bfcrun.i
      &procedure  = "InitialValues"
      &parameters = "input 'GLType':U,
                     output oiReturnStatus" }

    create t_sGLType.
    raw-transfer tGLType to t_sGLType.