Article View: borland.public.cppbuilder.database.ado
Article #4301Error: List index out of bounds.
From: Baris YURTCU
Date: Tue, 05 Feb 2002 13:05
Date: Tue, 05 Feb 2002 13:05
23 lines
2114 bytes
2114 bytes
Hi everybody, I use MS-SQL7. I put a Database, Query and a Datasource to my project. Query SELECTs all rows (records) and all columns (fields) of a table. (SELECT * FROM dbo.myTable). I also put a DBGrid onto my form, inserted all columns (fields) of the table. I run my project and enter some data on DBGrid, there is no problem. But when I enter or change data on LAST column (field) of myTable, I get this error: "List index out of bounds." If I write a list of all fields of myTable into SELECT (instead of "*"), there is no problem even I enter or change data on last column (field) of myTable. For example, myTable contains 3 fields: Field1, Field2, Field3. I get error "List index out of bounds" if I put "SELECT * FROM dbo.myTable" code into SQL property of Query, and try to enter or change data on Field3. But I don't get this error if I put "SELECT Field1, Field2, Field3 FROM dbo.myTable" code. Can anybody help me please? Thanks. Baris.
Technical Details
Message-ID:
<3c5fded5_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!24.226.1.12!feed.cgocable.net!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,865dc369c33919c0,start X-Google-Attributes: gid10698b,public X-Google-Thread: fc5f9,865dc369c33919c0,start X-Google-Attributes: gidfc5f9,public X-Google-Thread: f5ca7,865dc369c33919c0,start X-Google-Attributes: gidf5ca7,public X-Google-ArrivalTime: 2002-02-05 05:46:11 PST From: "Baris YURTCU" <badidi@hotmail.com> Newsgroups: borland.public.cppbuilder.database.ado,borland.public.cppbuilder.database.sqlservers,borland.public.cppbuilder.winapi Subject: Error: List index out of bounds. Date: Tue, 5 Feb 2002 15:05:11 +0200 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 195.175.127.93 Message-ID: <3c5fded5_1@dnews> X-Trace: dnews 1012915925 195.175.127.93 (5 Feb 2002 05:32:05 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!24.226.1.12!feed.cgocable.net!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews