From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,WEIRD_QUOTING autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.6.81 with SMTP id 78mr78166158iog.1.1470662691869; Mon, 08 Aug 2016 06:24:51 -0700 (PDT) X-Received: by 10.157.10.77 with SMTP id 71mr1769871otg.15.1470662691830; Mon, 08 Aug 2016 06:24:51 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!f6no8277879ith.0!news-out.google.com!d68ni20863ith.0!nntp.google.com!f6no8277873ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 8 Aug 2016 06:24:51 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=95.173.128.204; posting-account=YB4WOgoAAABLG9D7qoJiPBc6EJSzsPDF NNTP-Posting-Host: 95.173.128.204 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <317c7c35-7260-4b0a-9615-b8616c87dfdc@googlegroups.com> Subject: Gtkada, Gtkada_Builder.Add_From_String problem. From: George J Injection-Date: Mon, 08 Aug 2016 13:24:51 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:31316 Date: 2016-08-08T06:24:51-07:00 List-Id: Hi all! Today i've got a problem with Add_From_String method of Gtkada_Buil= der. I have an xml (GLADE) file, which loading fine with Add_From_File. So = i've copied text in String var, and Add_From_String doesn't work. May be I = don't know some feature of this method? there are to examples i've made 1. use ASCII; UI_Str : String :=3D=20 "" & "" &=20 "" &=20 "" &=20 "" & "" & "" & "" &............ 2.=20 use ASCII; =20 UI_Str : String :=3D=20 "" & LF & CR & "" & LF & CR &=20 "" & LF & CR &=20 "" & LF & = CR &=20 "" & LF & CR & "" & LF & CR & "" & LF & CR & "" & LF & CR &........... Result: .............. if 0=3DBuilder.Add_From_String(Buffer =3D> UI.UI_Str, Error =3D> Error'Access) then return;-- <--Comes here!!!! end if; Hope smb can help. Thanks!