Getting last row count in For each row activity

Hii,

I have to make the variable blnLastRow=True if(Dt.RowsCount=current index), otherwise it will be False.

How can I write this condition.

Can anyone help?

Hi!

try like this

Dt.rows.count +1( add header is unchecked)
Dt.rows.count+2( add headers is checked)

Regards,
NaNi

Okay

Hi,

We don’t need to use if function in the field. Probably you need to subtract 1 from count of rows, because index is 0-based. Can you try as the following?

Regards,

Its worked.

Thank you.

1 Like

I already assigned one variable…blnLastRow=FALSE.

if(dt.rowsCount=index+1)…then i want to change its value to “TRUE”.

So if condition should be needed right…!!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.