This function loads an external file — typically, a delimited text file — that can be used to look up table values. One column of the file is designated as the keywords column, and another column is designated as the values column.
Function | Group | Execution | Windows | Embedded | Thin Client |
---|---|---|---|---|---|
LookupLoad | File | Synchronous | Supported | Supported | Supported |
This function returns the number of rows/lines in the specified file.
If the specified file cannot be found, then this function returns a negative number as an error code.
This function only loads the specified file; it doesn't do anything with the file. To use the file, call the LookupContains and LookupGet functions.
Also, to load another file, simply call this function again. Only one file can be loaded at a time, however; the new file replaces the old in the project's memory.
LookupLoad( "C:\Temp\customerlist.csv", 1, 4, "," )