project QadFinancials > class BDInvoice > method GetDBDatasetHandle

Description

GetDBDatasetHandle: Copy the class-dataset into the output handle.
Note that at some point the callers should clear up the handle to avoid mempory-leaks
This can be done by :
if valid-handle(vh) then delete object vh.


Parameters


ohHandleToTheClassDatasetoutputhandleHandleToTheClassDataset: Handle to the class-dataset of this class.

Note that at some point the callers should clear up the handle to avoid mempory-leaks
This can be done by :
if valid-handle(vh) then delete object vh.
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BDInvoiceJournalEntry.ApiStdMaintainTT


program code (program7/bdinvoice.p)

    
    /* ===================================================== */
    /* Copy the class-dataset into the output dataset-handle */
    /* ===================================================== */
    assign oiReturnStatus = -98.    
    create dataset ohHandleToTheClassDataset in widget-pool "non-persistent":U.
    ohHandleToTheClassDataset:copy-dataset(dataset BDInvoiceO:handle, true, false, false, "", false, "").
    assign oiReturnStatus = 0.