VARNUM returns the VarNum from a VarId.
SYNTAX:
VARNUM(VarId)
VarId: The variable ID to return the VarNum for. Can be a number (i.e. 12) or a cell reference (i.e. C2).
NOTES:
Typically, the VarNum function is used with the results from a SQLFIRST or SQLRESULT Function as the OPS Data tables use the Varid.
EXAMPLES: