# Using OptionCaptionML

##### Tags:

- C/AL

##### Categories:

- Best Practice

The OptionCaptionML should be filled in for sourceexpression using option data types.

Bad code

    { 30 ;TextBox ;17850;0 ;150 ;423 ;Name=Selection;
    SourceExpr=Selection;
    DataSetFieldName=Selection }
    ...
    Selection@1008 : 'Open,Closed,Open and Closed';
    ...

Good code

    { 30 ;TextBox ;17850;0 ;150 ;423 ;Name=Selection;
    OptionCaptionML=ENU=Open,Closed,Open and Closed;
    SourceExpr=Selection;
    DataSetFieldName=Selection }
    ...
    Selection@1008 : 'Open,Closed,Open and Closed';

Last modified February 24, 2022: Added tags & categories + cleanup (5ee04366) by waldo1001