project BLF > class Cacher > method GetCharacterValue

Description

Return a cached character value, based on the name that is passed as input parameter.


Parameters


icDataItemNameinputcharacterThe name of the cached character type item for which the value needs to be returned.
ocValueoutputcharacterThe value of the cached character data item with the name specified in icDataItemName.
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


BLF
method Progress.ReadQuery
method Progress.ReadQueryBackward


program code (program1/cacher.p)

find tCachedData where
     tCachedData.tcName = icDataItemName and
     tCachedData.tcDataType = "c"
     no-error.
if available tCachedData
then assign ocValue = tCachedData.tcCharValue.
else assign ocValue = ?.