# CONFIRM

##### Tags:

- C/AL

##### Categories:

- Best Practice

Always end CONFIRM with a question mark.

Bad code

    ChangeAllOpenedEntriesQst@1000 : TextConst 'ENU=Do you want to change all open entries for every customer and vendor that are not blocked';
    ...
    IF CONFIRM(ChangeAllOpenedEntriesQst,TRUE) THEN

Good code

    ChangeAllOpenedEntriesQst@1000 : TextConst 'ENU=Do you want to change all open entries for every customer and vendor that are not blocked?';
    ...
    IF CONFIRM(ChangeAllOpenedEntriesQst,TRUE) THEN

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