Copy a code on integer

I want to copy the value of a code variable in an integer variable integer := code; this is incorrect, how i can do it.

You Would use Evaluate(Integer,CODE); The function returns true if a value is returned otherwise it return false. Paul Baxter

True Paul but you need to trap an error if converting CODE to integer IF NOT Evaluate(Integer,CODE)Then ERROR(‘xxxxxx’); OR IF NOT Evaluate(Integer,CODE)Then Integer:=0; David Cox MindSource (UK) Limited Navision Solutions Partner Email: Web: