Description
Initialize a new record in class table tRegion.
Parameters
ic_ParentRowid | input | character | = tRegion.tc_ParentRowid |
BRegion | output | dataset | class dataset, containing only the newly initialized record |
oiReturnStatus | output | integer | error status |
program code (program/bregion.p)
assign oiReturnStatus = -98.
empty temp-table t_sRegion.
empty temp-table t_sTransString.
empty temp-table t_sCustomTable0.
empty temp-table t_sCustomTable1.
empty temp-table t_sCustomTable2.
create tRegion.
assign tRegion.tc_Rowid = dynamic-function("GetNumberForNew":U in {&TARGETPROCEDURE})
tRegion.tc_Status = "N":U.
{ includes/bfcrun.i
&procedure = "StartPersistence"
¶meters = "output vh_persistence,
output viFcReturnSuper" }
if viFcReturnSuper <> 0
then do:
assign oiReturnStatus = viFcReturnSuper.
return.
end.
assign tRegion.Region_ID = dynamic-function ("GetNextValue":U in vh_persistence,"ObjectNumber":U).
{ includes/bfcrun.i
&procedure = "InitialValues"
¶meters = "input 'Region':U,
output oiReturnStatus" }
create t_sRegion.
raw-transfer tRegion to t_sRegion.