convert option to text

sankarsankar Member Posts: 79
Hi experts.

how to convert option string into text datatype..
my scenario is user will select option from the list and this value should be captured in text box...

Thanks..
Everything is Possible

Comments

  • NRNR Member Posts: 78
    The same can be acheived by adding this on option trigger :

    TextVariable := FORMAT(OptionVariable);

    This will assign the option string to your textvariable and this textvariable should be specified as the sourceexpression of the textbox you want to display in ..
  • kinekine Member Posts: 12,562
    Do not forget that this will be Language depending and you will have different values for ENU and other languages...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • gulamdastagirgulamdastagir Member Posts: 411
    NR wrote:
    The same can be acheived by adding this on option trigger :

    TextVariable := FORMAT(OptionVariable);

    This will assign the option string to your textvariable and this textvariable should be specified as the sourceexpression of the textbox you want to display in ..


    But TextVariable will be all CAPS.

    I know we can try

    TextVariable := LOWERCASE(FORMAT(OptionVariable));

    But,I want to Get the exact option for example eg. NewYork not newyork or NEWYORK
    Regards,

    GD
Sign In or Register to comment.