Hi,
I need help writing a code that finds the highest value in a table's column. Here's my attempt but it returns a 0.
Table MainData = Table("MainDataTable"); int oldResult = 0; int newResult = 0; for( int row = 1; row<= Table("MainDataTable").numRows; row++) newResult = Table("MainDataTable")[row][1]; if (newResult >= oldResult) oldResult = newResult; return newResult;