project QadFinancials > class BCountry > method ApiLoadCountryBLWCode
function returns character
Description
This method will return all BLWI country code with the BLWI Country ID that was passed as input parameter.
Parameters
iiBLWCountryId | input | integer | BLWI Country ID |
Internal usage
QadFinancials
program code (program9/bcountry.p)
define variable oiReturnStatus as integer no-undo.
if iiBLWCountryId = ? or
iiBLWCountryId = 0
then return "":U.
<Q-1 run BLWICountryPrim (all) (Read) (NoCache)
(input iiBLWCountryId, (BLWICountryId)
input ?, (BLWICountryCode)
output dataset tqBLWICountryPrim) in BBLWICountry >
find first tqBLWICountryPrim where
tqBLWICountryPrim.tiBLWICountry_ID = iiBLWCountryId
no-error.
return if available tqBLWICountryPrim
then tqBLWICountryPrim.tcBLWICountryCode
else "":U.