Topic: to delete this message? "list index out of bounds"

to delete this message? "list index out of bounds"

Domebil

Re: to delete this message? "list index out of bounds"

The message says that you have error in your script.
Please attach your project and describe steps to introduce the error.

Dmitry.

Re: to delete this message? "list index out of bounds"

the project was sent booby email

Domebil

Re: to delete this message? "list index out of bounds"

all done thanks !!

Domebil

Re: to delete this message? "list index out of bounds"

Hello,


I'm coming after the battle, but this message probably means you are fetching more rows than you actually have.


This happens often when you have a for loop like :

for i := 0 to Form1.TableGrid1.RowCount do
     begin
          .... some awesome code....
     end

As indexing of rows often start at 0, with that loop you are fetching 1 more row that actually exists in the tablegrid. The rowcount - 1 will solve the problem.


That was just a little advise for the futur


Cheers


Mathias

I'm a very good housekeeper !
Each time I get a divorce, I keep the house

Zaza Gabor

Re: to delete this message? "list index out of bounds"

thank you! mathmathou

Domebil