panelSelector()
Opens the file selection dialog and writes the selected file name to a variable.
Synopsis
int panelSelector(string &panelstr);
Parameters
Parameter | Description |
---|---|
panelstr | variable for the selected file |
Return value
The function returns 0 in normal operation or in the event of errors -1.
Error
-
Description
Opens the file selection dialog and writes the name of a file selected there to the string variable panelstr. The file path is specified relative to the panel directory. The function is used to allow the panel to be selected. Valid content of the variable panelstr is an absolute file path string.
WinCC OA automatically converts backslashes into slashes (for example, for the panel selector). In the case of panel names containing a slash, a double backslash is required in the CONTROL script.
Example
main()
{
string s;
panelSelector(s);
}
Assignment
Simple configuration
Availability
UI