Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
[ FlexSim 17.2.1 ]
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;
Solved! Go to Solution.
