Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Qvmaster2019
Creator
Creator

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

Labels (1)
1 Solution

Accepted Solutions
whiteline
Master II
Master II

Thats right.

It's a procedure definition.

To call it add the following string to the script:

Call LoadTableData;

View solution in original post

3 Replies
whiteline
Master II
Master II

Strange. Works fine.

Qvmaster2019
Creator
Creator
Author

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

whiteline
Master II
Master II

Thats right.

It's a procedure definition.

To call it add the following string to the script:

Call LoadTableData;