06-18-2007 09:38 AM
06-18-2007 09:49 AM
Hello,
What is the value that you pass to the Cell parameter of the GetTableCellVal function? Note that the indices are not zero-based but 1-based. The first Point index represents the column number (range: 1 to number of columns). The second Point index represents the row number (range: 1 to number of rows).
06-18-2007 09:55 AM
Hello again,
I haven't tested it, but this piece of code should work fine:
GetNumTableColumns (pnlHandle, PNL_TABLE, &num_columns);
GetNumTableRows (pnlHandle, PNL_TABLE, &num_rows);
for (row_cntr = 1; row_cntr <= num_rows; row_cntr++){
for (column_cntr = 1; column_cntr <= num_columns; column_cntr++){
GetTableCellVal (pnlHandle, PNL_TABLE, MakePoint (column_cntr, row_cntr), string);
num_bytes = ComWrt (port_nr, string, strlen (string));;
if (num_bytes < 0){
MessagePopup ("Error", GetRS232ErrorString (num_bytes));
return 0;
}
}
}
06-18-2007 10:03 AM
06-18-2007 10:12 AM