This function either logs on a specified user or displays a Log On dialog.
Function | Group | Execution | Windows | Embedded | Thin Client |
---|---|---|---|---|---|
LogOn | Module Activity | Asynchronous | Supported | Supported | Supported |
optStrUsername and optStrPassword are optional parameters. If they're not specified, then the project will instead display a Log On dialog, to prompt the station's current operator — whoever it is — to log on.
Value | Description |
---|---|
0 | Error (e.g., username or password is invalid) or cancellation. |
1 | Success. |
LogOn()
LogOn( "Albert", "EMC2" )