Contents - Index


List from file

You can create a selection list from a file with the {FileList FileName} command. For example, {FileList C:\Temp\MyList.txt} will load the C:\Temp\MyList.txt file and show a list of items based on the lines in the file.

The format of the text file that contains the list is one list item per line with an item label and an item value seperated by a comma.

For example:

One,1
Two,2
Three,3
Four,4
More,{list 1,2,3}
Hello,Hello{enter}

This will show a list of One, Two, Three, Four, More, and Hello for you to select from. If you select Two TypeItIn will type 2. If you select Hello, TypeItIn will type Hello and press the Enter key. If you select More TypeItIn will pop up another list for you to choose from.

You can use other programs to generate the list file as long as it is in a standard text file format. For example, you can use Microsoft Excel to save your part number data to a Comma Separated Value (CSV) file format to create a list of part numbers or item descriptions.

You can also let the user select an item from a list and store the selection in a variable with the Var List special function. You can then use the If, Else, ElseIf function to perform specific functions based on the user's selection.