>Take a second look to this ELSE branch: if lnCompteur = 1, the FOR loop will be exit anyway and is almost sure you don't want to modify the FOR variable (lnCompteur) here (one value will be skiped without beeing tested).
Yes, I know. This is what I wanted. :)