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=0.3 required=5.0 tests=BAYES_00,STOX_REPLY_TYPE, STOX_REPLY_TYPE_WITHOUT_QUOTES,XPRIO autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!news.panservice.it!feed.xsnews.nl!border02.ams.xsnews.nl!feeder03.ams.xsnews.nl!frontend-F09-08.ams.news.kpn.nl From: "ldries46" Newsgroups: comp.lang.ada Subject: Filling a listsore real time Date: Sun, 9 Feb 2014 16:13:03 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 Message-ID: <52f79b6b$0$26363$703f8584@news.kpn.nl> Organization: KPN.com NNTP-Posting-Host: 77.168.179.107 X-Trace: 1391958891 news.kpn.nl 26363 77.168.179.107@kpn/77.168.179.107:51087 Xref: news.eternal-september.org comp.lang.ada:18453 Date: 2014-02-09T16:13:03+01:00 List-Id: In my program I want a combobox with a liststore that is every time the dialog in which it is called has a different number of of iters and another value within the iter. In this case the iters are from an array of characters. It looks like the Routine Set_Value or Set_Char is not correct working because I checked the input for Set_Char gchar(ch) gives me the correct Character. append also works correct, I get the correct number of items but the items should be 1, 2, 3, 4, 5, 6, 7, 8, 9 and they are 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 n1 := 0; for nn in 1 .. max loop if not Grid(x_vak, y_vak).impossible(n1) then ch := CHARACTER'Val(Symbols(n1 ,Set)); Set_Char(G_char, gchar(ch)); append(CH_List, CH_Iter); Set_Value(CH_List, CH_Iter, 0, G_char); end if; n1 := n1 + 1; end loop; Can anyone tell me what I am doing wrong. The only tutorials I can find who are a little bit close to my problem are for c or python. L. Dries