[gtkada] Clist and only one column

Preben Randhol randhol at pvv.org
Wed Feb 12 09:03:36 CET 2003


Rob Groen <robgr at xs4all.nl> wrote on 12/02/2003 (08:54) :
> Why not try:
> 
> 
>    declare
>       function "+" (S : in String)
>          return Interfaces.C.Strings.Chars_Ptr
>          renames Interfaces.C.Strings.New_String;
>       String_Array : Gtkada.Types.Chars_Ptr_Array :=
>             (1 => +Get_Element (List));
>    begin
>       Row := Append (Gui_Help_Window.Section_Clist, String_Array);
>       Free (String_Array);
>    end;
> 
> Then you have only one element in your Chars_Ptr_Array. BTW the '1 => ' is crucial to the compiler....!
> 

Ok. This is too complicated so I'll stick with my solution. Thanks
though!

-- 
Preben Randhol ------------------- http://www.pvv.org/~randhol/ --
                 «For me, Ada95 puts back the joy in programming.»



More information about the gtkada mailing list