Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Goodafternoon,
I want to call a sub from a for..next routine.
for i=0 to NoOfRows('Artikel')
Let Art = peek('ARTIKELNUMMER',$(i),'Artikel');
CALL Inkoop($(Art)); //<-----Script fails with message: Error in scriptsentence:Call Inkoop(12345678)
NEXT i;
Sub Inkoop(Art)
'Do something
End Sub;
Why does the code fail?
The reason is that the sub must be defined before you call it so move the code sub..end sub before the for next routine
Hope it helps
The reason is that the sub must be defined before you call it so move the code sub..end sub before the for next routine
Hope it helps
Thank you very much alexandros17.
that was the trigger.