blob: 59aaa3ae617dfa896366077c81ef229d2a5a6f7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
program optimiav;
//compile with -OG2p3
{$ifdef FPC}{$mode objfpc}{$h+}{$endif}
{$ifdef mswindows}{$apptype console}{$endif}
uses
{$ifdef FPC}{$ifdef linux}cthreads,{$endif}{$endif}
sysutils;
type
stringarty = array of string;
ttestclass = class
private
fignoreexceptionclasses: stringarty;
public
procedure setignoreexceptionclasses(const avalue: stringarty);
end;
procedure ttestclass.setignoreexceptionclasses(const avalue: stringarty);
var
int1: integer;
begin
setlength(fignoreexceptionclasses,length(avalue));
for int1:= 0 to high(avalue) do begin
fignoreexceptionclasses[int1]:= uppercase(avalue[int1]);
end;
end;
var
testclass1: ttestclass;
ar1: stringarty;
begin
testclass1:= ttestclass.create;
setlength(ar1,2);
testclass1.setignoreexceptionclasses(ar1);
testclass1.free;
end.
|