Dear achfire,
try
Select the Table (in Front Panel) -> Data operation > Empty table, then
Select the Table (in Front Panel) -> Data operation > Make current value default
Cheers,
Note1: you do not need the for-loo named "Maybe data beyond first column". Remove it. The "equal" and "all" will adjust accordingly.
Note2: do not (over-)use local variables. Just wire the i variable of the for-loop to the "NrOrdreSuivant" through the wall of the case-structure.