Skip to content

Commit 573290b

Browse files
committed
add PrettyMessage procedure
1 parent c182e93 commit 573290b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

erabliereapi/DynDialog.al

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ codeunit 50130 DynDialog
77
begin
88
for i := 1 to n do begin
99
dialogTemplate += '#' + Format(i) + ' ';
10+
Texts.Add('');
1011
end;
1112
Dialog.Open(dialogTemplate);
1213
end;
@@ -18,9 +19,21 @@ codeunit 50130 DynDialog
1819

1920
procedure Update(number: Integer; text: Text)
2021
begin
22+
Texts.Set(number, text);
2123
Dialog.Update(number, text);
2224
end;
2325

26+
procedure PrettyMessage(text: Text)
27+
var
28+
i: Integer;
29+
template: Text;
30+
begin
31+
for i := 1 to Texts.Count do
32+
template += Texts.Get(i) + '\';
33+
Message(text + '\' + template, Texts);
34+
end;
35+
2436
var
2537
Dialog: Dialog;
38+
Texts: List of [Text];
2639
}

0 commit comments

Comments
 (0)