Option captions

philippegirodphilippegirod Member Posts: 191
edited 2004-01-27 in Navision Attain
Hi everybody,

once again I'll ask a question about text string.....

I want to see in a string the text for the option selected in a field... for instance :
MESSAGE('The option selected is %1',VarRecord.OptionField);
But the Message which appears is 'The option selected is 1'. What is the solution to have the Caption of the option instead of the value ?

Thanks for all your help... and sorry for asking so basic things....
My candle burns by both ends, it will not last the night,
But oh my foes and oh my friends, it gives a lovely light

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Try FORMAT:
    MESSAGE('The option selected is %1',FORMAT(VarRecord.OptionField));
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • eromeineromein Member Posts: 589
    does that format show the right language as well?

    Never thought about that before. So it must show the right language... never had complaints... But then again... I'm only programming in the W1 version... Isn't thing a real riddle, wraped in an enigma... hidden in a labyrint!
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • philippegirodphilippegirod Member Posts: 191
    Yes, it does.
    My candle burns by both ends, it will not last the night,
    But oh my foes and oh my friends, it gives a lovely light
Sign In or Register to comment.