Is there somthing wrong with EVALUATE...?

voodoo
voodoo Posts: 82
edited 2005-10-11 in Navision Attain
Hi, I have some problem with this part of my code:
   IF EVALUATE(StatusValue,ValueArray[1]) THEN BEGIN
      SETRANGE(Status,StatusValue);
   END

StatusValue is global variable, type Option;
ValueArray is type of text
Something is wrong with EVALUATE, because if I put only EVALUATE(StatusValue,ValueArray[1]) I have a messagebox:
You cannot enter 'Status::Released' in Option.

:-k

Thnx
misha fka voodoo

Comments