Loading and Saving Item Lists
- Last UpdatedJul 13, 2023
- 1 minute read
You can load and save all items in a list from and to a file.
To load the item list for a Combo Box or List Box control from a file
-
In an action script, use the following method:
ControlName.LoadList(FileName);
where ControlName is the name of the Combo Box or List Box control and FileName is the name of a file on the local harddrive or on the network.
If you only specify a file name, the file is expected to be in the users folder. For example: c:\documents and settings\username.
The list contained in the file is loaded and, if valid, the current list is overwritten.
To save the item list for a Combo Box or List Box control to a file
-
In an action script, use the following method:
Controlname.SaveList(FileName);
where ControlName is the name of the Combo Box or List Box control and FileName is the name of a file on the local harddrive or on the network.
If you only specify a file name, the file is saved to the users folder. For example, c:\documents and settings\username.
The list is saved to the specified file.