I have an idea:
- The variables really have the same name and value - the variable labeled '1' has the value 1, the one labeled '2' has the value 2 and so on.
=> I suppose this is the line_ID that I pass to the subroutine:
- This is actually my counter i that I use in the loop
- I call the sub like >>> CALL Kostenstellenroutine ($(i)) <<<
=> The sub itself begins like >>> sub Kostenstellenroutine (v_lineID) <<<
=> The counter i is thus passed to the sub labeled v_lineID.
=> I suppose, but unfortunately I cannot check, that this variable that is left over with every single call of the sub is just this counter.
In another thread on a similar issue, I found that >>> LET [var] = NULL(); <<< could be used <=> I cannot do that because I cannot use the semicolon or my LOOP will stop right there.
I guess, though, that those variables cost me very little in terms of performance, so I can just build a second LOOP and delete them all?
P.S.: No, obviously it was not that - that second LOOP seemingly did not even execute.
no, it is surely not necessary - the problem is, all of these variables just have a number as label - I cannot tell at which point in the code they are actually generated.
I will have another look at the SET and LET commands in the code - I believe there are several.
Thanks a lot!
I looked through my code and though there are a few variables inside the subroutine, those are updated with every calling of the subroutine.
=> It looks very much like those variables are something to do with my counter.
I post the code of my loop here, there's nothing much to it:
// Here I load a list of the emps we have RESIDENT from the base_load - a step that might be skipped...
// this variable is also just for my own information and not relevant to the functioning of the code.
LET v_emps = NoOfRows('Mitarbeiterliste');
FOR i = 1 TO NoOfRows('Mitarbeiterliste')
CALL Kostenstellenroutine ($(i))
Now, that counter i takes on the values from 1 to, say, 1000 - and I have just the same nr. of variables created.
Can you tell me what's wrong there?`
Thanks a lot!