Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

darwin_nativida
Contributor

For Next Error

I am having error in this code.

Could anyone help me why this is giving an error?

 

Sub LoadTableData

For i = 0 To 3

LOAD '$(i)' as Counter AutoGenerate 1;

Next i

End Sub;

The error is script line error:

Next

Tags (1)
1 Solution

Accepted Solutions
whiteline
Honored Contributor II

Re: For Next Error

Thats right.

It's a procedure definition.

To call it add the following string to the script:

Call LoadTableData;

3 Replies
whiteline
Honored Contributor II

Re: For Next Error

Strange. Works fine.

darwin_nativida
Contributor

Re: For Next Error

I tested this code on a different machine. There was no error but there's no table as well.

whiteline
Honored Contributor II

Re: For Next Error

Thats right.

It's a procedure definition.

To call it add the following string to the script:

Call LoadTableData;