Re: STRING length



"markww" <markww@xxxxxxxxx> writes:

Actually please disregard the previous post, I found I needed to with
and use:

Ada.Text_IO.Unbounded_IO

So.. finally one compilation error remains, the actual call to my
function:

begin

Add_Record("Mark", "555-555-5555", "123 main street");

end LinkList;

the error is:

expected private type "Ada.Strings.Unbounded.Unbounded_String"

what does that mean? The problem is with calling the procedure, if I
comment the call out compilation is successful. The procedure looks
like:

"Mark" is a regular, not unbounded string. Try this:

begin
Add_Record (To_Unbounded_String ("Mark"),
To_Unbounded_String ("555-555-5555"),
To_Unbounded_String ("123 main street"));
end;

You may also like:

declare
function "+" (R : in String) return Unbounded_String
renames To_Unbounded_String;
begin
Add_Record (+"Mark", +"555-555-5555", +"123 main street");
end;

--
Ludovic Brenta.
.