Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
What is the use of Exit function in Qlikview
Thanks in Advance
Niranjan
The exit script
control statement stops script execution. It may be inserted anywhere in the
script. An exit
script statement can be made conditional by the optional use of when or unless
clause.
Regards,
Siva
Exit() is used in script. Specially in incremental loading purpose.
Let us go through an example
if QvdCreateTime('MyFile.qvd') <> 0 then
Statement;
else
Exit();
end if
Hope it will help you.
See the reference manual it 'll be clears to u or you can search on qlikview help
Exit function:
The exit script control statement stops script execution. It may be inserted anywhere in the script. An exit
script statement can be made conditional by the optional use of when or unless clause. The syntax is:
exit script[ (when | unless) condition ]
Where
condition is a logical expression evaluating to true or false.
Since the exit script statement is a control statement and as such is ended with either a semicolon or end-ofline,
it must not cross a line boundary.
Examples:
exit script
exit script;
exit script when a=1
Exit function is used to terminate the execution or a command line in the script.
Hi Rohit,
Please let me know what is line boundary?
"It must not cross a Line Boundary"
There is no Exit() function and that syntax will cause an error. There is an Exit Script command, used like this:
Exit Script;
or
Exit Script When vTest = 1;
The command terminates script execution. Code after the Exit Script will still be parsed, and a syntax error in the non-executable code may still cause the reload to fail.