project BLF > class BSharedSetType > method CalcCalcSharedSetTypeCodeTrans

query calculated fields procedure

Description

Assign a value to query calculated field pqSelectSharedSetType.tcCalcSharedSetTypeCodeTrans


Parameters


oiReturnStatusoutputintegerReturn status of the method.


Internal usage


BLF
query SelectSharedSetType


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.