18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

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.

Appendix: Built-in Scripting Language<br />

Returned value<br />

This function returns the following possible values:<br />

Value<br />

Description<br />

0 Specified keyword not found.<br />

1 Specified keyword found.<br />

Notes<br />

The external file must already be loaded by calling the LookupLoad function.<br />

Examples<br />

LookupContains( "customer167" )<br />

LookupGet<br />

This function gets a value from an external file by cross-referencing from a specified keyword.<br />

Function Group Execution Windows Embedded Thin Client<br />

LookupGet File Synchronous Supported Supported Supported<br />

Syntax<br />

LookupGet(strKey)<br />

strKey<br />

The keyword to look for in the file's keywords column.<br />

Returned value<br />

This function returns (as a string) the cross-referenced value from the file's specified values column.<br />

If no value is found, then this function returns strKey.<br />

Notes<br />

The external file must already be loaded by calling the LookupLoad function.<br />

Examples<br />

LookupGet( "customer167" )<br />

LookupLoad<br />

This function loads an external file — typically, a delimited text file — that can be used to look up table<br />

values. One column of the file is designated as the keywords column, and another column is designated as<br />

the values column.<br />

Function Group Execution Windows Embedded Thin Client<br />

LookupLoad File Synchronous Supported Supported Supported<br />

Syntax<br />

LookupLoad(strFileName,numColKey,numColValue,strDelimiters)<br />

strFileName<br />

numColKey<br />

The file path and name of the external file.<br />

Page 640<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!