Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

Bin Load getting error msg , it is due to infornt of Binary load can not have IF '$(vComputerID)' =

Hi All

Below script working fine :-
Binary "C:\Users\pauly\Dropbox\mainqv\QV_PROJECT\Bin load with Computer Name\QVD.qvw";

When i insert above script to below :-

LET vComputerID = Upper(ComputerName());

IF '$(vComputerID)' = 'DESKTOP-9837GT0' THEN

Binary "C:\Users\pauly\Dropbox\mainqv\QV_PROJECT\Bin load with Computer Name\QVD.qvw";

ELSEIF '$(vComputerID)' = 'PAUL' THEN

Else
END IF

I get below error msg :-

Unknown statement
Binary "C:\Users\pauly\Dropbox\mainqv\QV_PROJECT\Bin load with Computer Name\QVD.qvw"

May i know why ?

Paul

1 Solution

Accepted Solutions
atoz1158
Creator II
Creator II

Hi

 

This is from the help system

Only one binary statement is allowed in the script and it must be the first statement of the script, even before the SET statements usually located at the beginning of the script.

HTH

Adrian

View solution in original post

2 Replies
atoz1158
Creator II
Creator II

Hi

 

This is from the help system

Only one binary statement is allowed in the script and it must be the first statement of the script, even before the SET statements usually located at the beginning of the script.

HTH

Adrian

paulyeo11
Master
Master
Author

Hi Sir

Thank you very much for your double confirmation.

Paul