blob: 0712ff3f1b9f36710538bfdeeb30e9d098239e59 (
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
|
program openarrayhigh;
{$ifdef FPC}{$mode objfpc}{$h+}{$INTERFACES CORBA}{$endif}
{$ifdef mswindows}{$apptype console}{$endif}
uses
{$ifdef FPC}{$ifdef linux}cthreads,{$endif}{$endif}
sysutils;
procedure testproc(const par1: array of string);
var
str1: ansistring;
begin
writeln(high(par1));
flush(output);
str1:= par1[high(par1)];
writeln(str1);
flush(output);
end;
var
str1: ansistring;
begin
str1:= 'abcdefg';
testproc(str1);
end.
|