mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 14:46:55 +01:00
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.
9 lines
260 B
AL
9 lines
260 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(StrSubstNo(ConfirmMsg, RecordCount), false));
|
|
end;
|
|
}
|