ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Control functions
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
ControlInOutReason (Function)
In french: ChampCauseEntréeSortie
Indicates the origin of the entry in the control.
Caution: This function must only be used in the entry code or in the exit code of the control.
Example
// -- Entry code of EDT_EDIT1 control
// If entry in the control via the keyboard
IF ControlInOutReason() = reasonKeyboard THEN
// The control is cleared
MySelf = ""
END
Syntax
<Result> = ControlInOutReason()
<Result>: Integer constant
Origin of the entry in the control currently in edit:
reasonClickEntry in the control via a mouse click.
reasonCodeEntry in the current control via SetFocusAndReturnToUserInput (or equivalent function).
reasonKeyboardEntry in the control via the TAB key, a keyboard shortcut or by navigating through a Table control with the arrow keys.
reasonOpeningEntry in the current control after window opening.
Component: wd290obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/12/2022

Send a report | Local help