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
Warning
From version 17, CurrentField is kept for backward compatibility. This function has been replaced with ControlCurrent.
Returns the name of the control currently in edit.
Example
// Identification du champ en cours de saisie
ResChamp = ControlCurrent()
Syntax
<Result> = ControlCurrent()
<Result>: Character string
  • Name of the control currently in edit,
  • Empty string ("") if no control is currently in edit (no control has focus).
If the control currently in edit does not belong to the window that owns the code, the returned string has the following format: "<Window name>.<Control name>".
If the control corresponds to a table cell, <Result> contains the name of the column.
If the control belongs to a supercontrol, <Result> has the following format: <Supercontrol name>.<Control name>.
Caution: The case of the field name (upper/lower case) corresponds to that used when creating the field in the editor.
Remarks
To identify the control that opens a context menu, use ControlContextMenu.
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