From: shoko2004@hotmail.com (shoko)
Subject: Re: unconstrained array question
Date: 24 Nov 2003 09:40:52 -0800
Date: 2003-11-24T09:40:52-08:00 [thread overview]
Message-ID: <4948f537.0311240940.4737d3c2@posting.google.com> (raw)
In-Reply-To: mailman.46.1069618607.3110.comp.lang.ada@ada-france.org
Marius Amado Alves <amado.alves@netcabo.pt> wrote in message news:<mailman.46.1069618607.3110.comp.lang.ada@ada-france.org>...
> Shoko, try to write correct English and use conventional Ada style. It
> will improve your chances of getting an answer in this list.
>
> You need to convert String to your character array where the latter is
> expected:
>
> N := new Arr' (Arr (Input_Line));
>
> But avoid using pointers. You can use declare blocks:
>
> declare
> A : Arr := Arr (Input_Line);
> begin
> ...
> end;
I am sorry for my bad english
I really need your help:
My question is:
--------------------------------------------------
type Arr is Array(integer range<>) of Character;
function Get_Text (Control : Multiline_Type;
Line : Natural := 0) return String is abstract;
----------------------------------------------------
Now all i want to do is:
declare
a : Arr := Arr(Get_Text(value));
begin
something;
end;
--------------------------------------
How can i convert abstract String to my ARR type?
(Character array).
thanks again.
next prev parent reply other threads:[~2003-11-24 17:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-22 17:39 unconstrained array question shoko
2003-11-22 18:11 ` Marius Amado Alves
2003-11-23 7:12 ` shoko
2003-11-23 8:42 ` tmoran
2003-11-23 12:16 ` Marius Amado Alves
2003-11-23 18:03 ` shoko
2003-11-23 20:16 ` Marius Amado Alves
2003-11-24 17:40 ` shoko [this message]
2003-11-24 18:16 ` Jeffrey Carter
-- strict thread matches above, loose matches on Subject: below --
2003-11-24 18:11 amado.alves
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox