how to convert option to string/text

Dear Folks, this should be easy question. how to convert option to string/text? [?] Anyone pls tell me. [B)] Thanks in advance as always, Jemmy

Hi Jemmy, You could use the FORMAT function

quote:

| FORMAT (String) Use this function to format a value into a string. String := FORMAT(Value [, Length] [, FormatNumber | FormatString]) String Data type: text or code This string contains the formatted output. Value Data type: any This is a C/AL variable (expression) of any simple data type, such as option, integer, biginteger, decimal, char, text, code, date, time, datetime, boolean, binary or GUID. |
| - |

Hi Arhontis, thanks buddy… it works now!