I need to pass array to procedure
example
CREATE TYPE TTEST AS VARRAY (100) OF VARCHAR(100);
FUNCTION TEST (V TTEST) RETURN STRING
IS
BEGIN
...
END;
How I possible to call that procedure from my Delphi programm?
I tryed
{Delphi code}
var tmpAr: variant;
tmpstr : string;
begin
tmpAr := VarArrayCreate([0,10], varVariant);
tmpAr[0]:='10';
tmpAr[1]:='20';
tmpstr := DMCommon.GSPackage.CallIntegerFunction('test', [tmpAr]);
end;
but error occured - PLS-00306: PLS-00306 wrong number or types of arguments
((
Why? Have I any possible to pass array?
example
CREATE TYPE TTEST AS VARRAY (100) OF VARCHAR(100);
FUNCTION TEST (V TTEST) RETURN STRING
IS
BEGIN
...
END;
How I possible to call that procedure from my Delphi programm?
I tryed
{Delphi code}
var tmpAr: variant;
tmpstr : string;
begin
tmpAr := VarArrayCreate([0,10], varVariant);
tmpAr[0]:='10';
tmpAr[1]:='20';
tmpstr := DMCommon.GSPackage.CallIntegerFunction('test', [tmpAr]);
end;
but error occured - PLS-00306: PLS-00306 wrong number or types of arguments

Why? Have I any possible to pass array?