ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Control functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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 field entry or exit code.
Example
// -- Code d'entrée du champ SAI_SAISIE1
// Si entrée dans le champ par le clavier
IF ControlInOutReason() = reasonKeyboard THEN
	// Le champ est remis à vide
	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: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help