bcquality/microsoft/knowledge/testing/confirm-needs-strsubstno-before-confirmhandler-sees-substituted-text.bad.al
Michael Dieringer 12b7f73d24 Add 4 more AL/BC testing patterns from Luc van Vugt's fluxxus.nl blog
Fourth batch from CURABIS ApS, mined from an external BC/NAV testing expert's blog archive (fluxxus.nl). Confirm+StrSubstNo interaction with ConfirmHandler, Table Relation Test's OnAfterRemoveTableRelation exclusion hook (verified against BCApps source, codeunit 134926), committing shared lazy-Initialize fixture data, and Assert.IsFalse vs asserterror for boolean checks.
2026-09-21 22:48:57 +02:00

9 lines
248 B
AL

codeunit 50140 "Sample Confirm Usage"
{
procedure ConfirmDeletion(RecordCount: Integer): Boolean
var
ConfirmMsg: Label 'Do you want to delete %1 records?';
begin
exit(Confirm(ConfirmMsg, false, RecordCount));
end;
}