project BLF > class BSharedSetType > method CalcCalcSharedSetTypeCodeTrans
query calculated fields procedure
Description
Assign a value to query calculated field pqSelectSharedSetType.tcCalcSharedSetTypeCodeTrans
Parameters
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
BLF
program code (program1/bsharedsettype.p)
assign viIndexPosition = lookup({&tcSharedSetTypeCode},vcSharedSetTypeCodes,chr(2)) no-error.
if viIndexPosition MODULO 2 = 0
then assign viIndexPosition = viIndexPosition - 1 no-error.
assign {&tcCalcSharedSetTypeCodeTrans} = entry(viIndexPosition,vcSharedSetTypeCodes,chr(2)) no-error.