Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I need to delete some rows that have column value <= 0 and then sort ascending the remaining rows. I am using custom code on reset trigger. My code is as follows, but it doesn't seem to work. I think j parameter on deletetablerow means number of rows that will be deleted.
Anyone has an idea?
int j;
int k;
for (k = 1; k <= 28; k +=1);
{
int delRow = 0;
for (j = 1; j < 29; j += 1)
{
if (Table("ScheduledPicking_CO")["PickingTime"]<=0)
{
delRow = 1;
break;
}
}
if (delRow = 1);
{
deletetablerow("ScheduledPicking_CO",j);
}
}
Solved! Go to Solution.