Option field in a message

piratpirat Member Posts: 3
hi,

how can i print the the caption of the option field rather than the value, without create a new option variable?

example 1:
i got a field with two options: Order and Invoice

message('The caption is %1',Record.OptionField::Order);

the result is: 0

example 2:
i got a field with two options: Order and Invoice

message('The caption is %1',Format(Record.OptionField::Invoice));

the result is: 1

thanks

Comments

Sign In or Register to comment.