wcLoadText() Function
- Last UpdatedNov 23, 2018
- 1 minute read
Replaces the contents of the text box with the contents of the file.
Category
windows control
Syntax
[ErrorNumber=]wcLoadText("ControlName", "Filename");
Parameters
ControlName
The name of the windows control object. For example, ListBox_1. Actual string or message tagname.
Filename
Contains the name of a file. If a complete path name is not supplied as part of the message parameter, the function will check the application directory for the file. Actual string or message tagname.
Remarks
For a list of returned error numbers, see Understand windows controls error messages.
Applies To
Text boxes.
Example(s)
The following statement loads a text file (c:\InTouch.32\readme.txt.) into a text box when the window (On Show Window script) containing the text box opens:
wcLoadText("Textbox_1", "c:\InTouch.32\readme.txt");