GetLookupValue

SYNTAX
GetLookupValue(objectName,key) 
ARGUMENTS

objectName Name of the lookup table
key Lookup key

RETURN Lookup value
EXAMPLE
VarContent="001"
res = GetLookupValue("LookupTab", VarContent)

Error handling in case lookup table or key does not exist

try

    TestVariable = GetLookupValue("TestLookUp", "LookUpKey")

OnError("LookupValueNotFound")

    ;Either the key within the lookup table or the lookup table itself was not found, therefore the variable is set to a default value

    TestVariable = "DefaultValue"

End-try