Hi all.
I need help to manage .ROWCOUNT function
I have to create a list from a file with many records and I think the fastest way is to use the FILLFROMRS function.
After loading my recordset I need to create "child" lines, only under certain conditions.
Then i read with my grid with a for next cycle, using .ROWCOUNT as a parameter, in this simple way:
for ix = 1 to igrid.rowcont
if okmytest then
.AddRow vRowBefore:=ix, vRowParent:=ix
end if
next
My problem is the rowcount value that does not dynamically update with the addition of child rows.
So (p.e.) if I start with 20 lines (rowcount = 20) and I add 7 child rows, my for-next cycle stops at the twentieth and NOT reads the last 7 rows "father" that should read, because the 7 additions are actually "child"
I also tried using a variable for the for-next loop, but I can not read all lines "father"
Can someone help me? sorry my bad English
tnx a lot.
Edited by moderator
2016-02-22T07:56:55Z
|
Reason: Igor/10Tec: Added code formatting