21.01.2013 Views

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3 Syntax Error<br />

4 General ODBC Error<br />

5 General OLE DB Error<br />

6 General XML Error<br />

7 General HTML Error<br />

8 File Not Found<br />

9 Database Not Found<br />

10 Table Not Found<br />

11 Field Not Found<br />

12 File Has Wrong Format<br />

Example:<br />

set ErrorMode=0;<br />

load * from abc.qvw;<br />

if ScriptError=8 then<br />

exit script;<br />

//no file;<br />

end if<br />

ScriptErrorDetails<br />

Returns a more detailed error description for some of the error codes above. Most importantly this variable<br />

will contain the error message returned by ODBC and OLE DB drivers for error codes 3 and 4.<br />

ScriptErrorCount<br />

Returns the total number of statements that have caused errors during the current script execution. This variable<br />

is always reset to 0 at the start of script execution.<br />

ScriptErrorList<br />

This variable will contain a concatenated list of all script errors that have occurred during the last script<br />

execution. Each error is separated by a line feed.<br />

24.4 Dollar-Sign Expansions<br />

Dollar-sign expansions are definitions of text replacements used in the script or in expressions. This process<br />

is known as expansion - even if the new text is shorter. The replacement is made just before the script statement<br />

or the expression is evaluated. Technically it is a macro expansion.<br />

A macro expansion always begins with '$(' and ends with ') ' and the content between brackets defines how<br />

the text replacement will be done. To avoid confusion with script macros we will henceforth refer to macro<br />

expansions as dollar-sign expansions.<br />

Note!<br />

Macro expansion is unrelated to script macros (VB or Java script defined in the script module).<br />

279

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!