ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Bluetooth
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
BTSelectDevice (Function)
In french: BTSélecteurPériphérique
Opens a system window to select a Bluetooth device.
Example
MyDevices is string
MyDevices = BTSelectDevice(btStatusAll, "Select the device to connect")
Syntax
<Result> = BTSelectDevice([<Filter condition> [, <Picker text>]])
<Result>: Character string
  • Identifier of the selected Bluetooth devices. If several devices are selected, the identifiers are separated by a tabulation (TAB).
  • Empty string ("") in the following cases:
    • the picker was canceled.
    • no device was selected.
    • an error occurred. In this case, the ErrorOccurred variable is set to True and ErrorInfo returns more details about the error.
<Filter condition>: Optional Integer constant (or combination of constants)
Status of the devices to select:
btStatusAll
(Default value)
Proposes all the devices.
btStatusAuthenticatedProposes the authenticated devices.
btStatusRememberedProposes the remembered devices.
btStatusUnknownProposes the unknown devices.
<Picker text>: Optional character string
Text to display in the picker window.
Remarks
Only the Microsoft Bluetooth stack is supported by this function. To know the stack used, call BTStack.
For more details, see Which stacks to use?
Business / UI classification: UI Code
Component: wd290com.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help