New topic: Listbox RowTag issue
<http://forums.realsoftware.com/viewtopic.php?t=29700> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message Miguel Dina Post subject: Listbox RowTag issuePosted: Sun Aug 23, 2009 1:28 pm Joined: Wed Mar 26, 2008 7:09 pm Posts: 69 Hi all, I feel kinda weird posting this question since i am a long time RB user and this thing seams way 2 basic but, it's just not working for me so please share your comments as usual. PROBLEM: Can't set the listbox rowtag in a loop which populates a listbox THE CODE Code:if rs <> nil and rs.recordcount <> 0 then do until rs.eof LB.AddRow " " LB.RowTag(LB.LastIndex) = rs.Field("_rowid").Int64Value LB.cell(LB.LastIndex,0) = rs.Field("Name").StringValue LB.cell(LB.LastIndex,1) = str(rs.Field("Code").IntegerValue) LB.cell(LB.LastIndex,2) = rs.Field("PrivID").StringValue LB.CellTag(LB.LastIndex,0) = BooRead(rs.Field("StatusID").IntegerValue) LB.CellTag(LB.LastIndex,1) = BooRead(rs.Field("ParentStatusID").IntegerValue) LB.CellTag(LB.LastIndex,2) = rs.Field("ParentPrivID").StringValue rs.MoveNext loop end if When looking at the recordset content, the field (_rowid) is there so this is a Realbasic code issue not a DB one. OpenBase _rowid is a LongLong datatype (64 bit integer) All other fields in the recordset are populated correctly and there are no DB error messages. I use OpenBase and RB2009R3 Please send some light. Miguel Top Indy Post subject: Re: Listbox RowTag issuePosted: Sun Aug 23, 2009 2:25 pm Joined: Wed Jul 09, 2008 10:46 pm Posts: 94 Location: Minneapolis I think you need to convert it to a string, similar to what you do with the "Code" field. _________________ http://www.miscjunk.org Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
