Rob
Forum Moderator

Have a look at profiles, expressions and DEFINE_PROFILE UDFs. I'd typically favour the latter, but expressions are possibly a better tool for you to learn.