Function EVALUATE in RTC

Hi !

I write this code :

EVALUATE(OptionNo, FORMAT(pioFldRef.VALUE))

message(format(OptionNo))

In classic the result is 0 (index of option Quote)

but in RTC result is Quote

So In classic is worked but in RTC an error message is generated

Someone have an idea how i can have the index of option Quote in RTC ???

THX ^^

I’m pretty sure if you take off the FORMAT it will work fine (untested). So just pioFldRef.VALUE will give you the number. I can’t remember if this is different when you are using references.