LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming Tables

I'm having problems with accessing table cells.

* First I load a three col, two row table with data. Works fine.
* I then access column 3 of each row and decrypt the value. I update each column 3 with the new value.
Works fine.
* I then attempt to read back the values for each cell in the table.
Problem:
I get error -55 The index passed is out of range.

I use GetTableCellVal for these operations.

Ex:GetTableCellVal (panel,control,MakePoint (1,1),str);
GetTableCellVal (panel,control,MakePoint (2,1),str);
GetTableCellVal (panel,control,MakePoint (3,1),str);
GetTableCellVal (panel,control,MakePoint (1,2),str);
GetTableCellVal (panel,control,MakePoint (2,2),str);
GetTableCellVal (panel,control,MakePoint (3,2),str);
Questio
n: The above calls return error -55. Why does this not work?
0 Kudos
Message 1 of 4
(2,801 Views)
Hi,

I've been trying to replicate this behavior with no succes, what I'm doing is reading the contents of a table, then writing new values and reading them back. Could you give me more details on how to replicate this?

I don't see anything wrong with the example code that you posted, as long as the cells exaist there should be no problem reading them.

Please post more details so we can work on this.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 4
(2,801 Views)
Hi,

I appreciate your time. I must apologize since my problem was a stupid bug.

I had a for loop - where I was performing the table updates - with the following problem:

for (i=0; i{
// logic
}

See the problem? I had a semi colon at the end of the for loop line. That was my problem. Duh!

Sorry for wasting your time.

Stan
0 Kudos
Message 3 of 4
(2,801 Views)
No Problem at all.... It happens to everyone here or there...

Good Luck!

Juan Carlos
0 Kudos
Message 4 of 4
(2,801 Views)