project QadFinancials > class BEmployee > method StopExternalInstances

Description

This method is used to stop instances that are started in AdditionalUpdates as part of current transaction


Parameters


oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BEmployee.AdditionalUpdates
method BEmployee.ValidateComponent


program code (program/bemployee.p)

<ANCESTOR-CODE>

/* ================================================================================= *
 * BMfgEmployee                                                                      *
 * ================================================================================= */
if valid-handle(vhBMfgEmployeeInst)
then do:
    <I-97 {bFcCloseAndStopInstance
         &CLASS           = "BMfgEmployee"}>
end.
else if viBMfgEmployeeID <> 0 and viBMfgEmployeeID <> ?
then do:
    <I-50 {bFcStopInstance
         &CLASS           = "BMfgEmployee"}>
end.