Does TStoredProc truncate strings longer than 255 characters ?

Hi !

        I use :
        - Oracle 7.2.2 (PL/SQL 2.2)
        - Delphi 3.0 (just installed)
        - BDE 4.0    (just installed)

        I have a "test" stored procedure (inside a package) with one
input parameter and one output parameter. It only moves the input to the
output parameter. JUST THAT.

        When I run it with SQL*Plus it goes ok. I send a string with 500
characters and it comes back in the output parameter. If I send ONLY 255
CHARS to the output parameter it goes ok.

        When I run it with Delphi, I get an error :
        "ORA-06502: PL/SQL: numeric or value error".

        Any clue ?

        Thanks in advance

        Bye

        Fran?a

P.S. : There go both the procedure and the delphi code :

        In Oracle :

PROCEDURE RETORNA_STRING( TIPO_OBJETO IN VARCHAR2, TEXTO_SELECT2 OUT
VARCHAR2 ) IS
BEGIN
TEXTO_SELECT2 := TIPO_OBJETO;
END RETORNA_STRING;

        In Delphi :

procedure TForm1.FormShow(Sender: TObject);
var string01, string02 : AnsiString;
begin

SetLength(String01, 500);
SetLength(String02, 500);
{ puts 320 chars into String01 )
String01 :=
'....*....1....*....2....*....3....*....4....*....5....*....6....*....7....*....8'
+
'....*....9....*....0....*....1....*....2....*....3....*....4....*....5....*....6'
+
'....*....7....*....8....*....9....*....0....*....1....*....2....*....3....*....4'
+
'....*....5....*....6....*....7....*....8....*....9....*....0....*....1....*....2';

DataModule2.StoredProc1.ParamByName('TIPO_OBJETO').AsString := String01;
DataModule2.StoredProc1.ExecProc;
 ===========> HERE I GET THE ERROR MESSAGE (ORA-06502) <============

String02 :=
DataModule2.StoredProc1.ParamByName('TEXTO_SELECT2').AsString;

Application.MessageBox( Pchar(String02), 'Ttulo', MB_OK );

end;