Dear community,
Currently, i am following the template built and would like to know what is mean by this wording : iCounter < dtData.Rows.Count?
Many thanks in advance
Dear community,
Currently, i am following the template built and would like to know what is mean by this wording : iCounter < dtData.Rows.Count?
Many thanks in advance
Hi
Here Icounter is a int32 variable with default value as 0
And dtData is a datatable where expression
dtData.Rows.Count gives us the number of ROWS or RECORDS in that datatable
And the icounter variable is incremented for every iteration
Here this expression is now used to compare whether we have reached and obtained all the records of dtData by incrementing icounter for every iteration
Once they both become equal that is when icounter becomes equal to dtData rows count the flow will change the direction
Cheers @SH_94
Dear @Palaniyappan ,
Normally when we can apply this formula?
Also, may i know what is the output if both does not equal for the sentence below?
" Once they both become equal that is when icounter becomes equal to dtData rows count the flow will change the direction".
Thank you.
This is usually used when you want to iterate through each row of datatable one by one
not equal to means there can be two ways either it should be greater or lesser.
if the icounter is less than number of rows in dtData then it will go to TRUE side or if its greater than the number of rows or even if its equal to number of rows then it will go to FALSE side
Cheers @SH_94
Dear @Palaniyappan ,
Thanks a lot for the detail explanation. It is clear now.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.