Opens a standard dialog box with the available scanners. The user can select the desired scanner: the corresponding information will be retrieved in a variable of type Scanner
// Scanner selection by the user
MyScanner is Scanner = ScanSelect()
// No scanner connected to the computer or operation canceled by the user?
IF ErrorOccurred _OR_ MyScanner.Name = "" THEN
<Result>: Scanner variable
Scanner variable initialized with the details of the scanner selected by the user in the standard dialog box.
If an error occurs, or if the user has not selected a scanner in the dialog box, the ErrorOccurred variable is set to True and the corresponding error message is returned by ErrorInfo.
The behavior of the function varies depending on the number of scanners connected to the current computer:
- If no scanner is connected to the current computer, the standard dialog box is not displayed and the ErrorOccurred variable is set to True.
- If at least one scanner is available, a standard dialog box will be displayed, showing the different scanners available on the current computer. The user will be able to select the scanner to be used.
Business / UI classification: UI Code