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
Warning
From version 17, CurrentField is kept for backward compatibility. This function is replaced by ControlCurrent.
Returns the name of the control currently in edit.
Example
// Identify the control currently in edit
ResControl = 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).
iPhone/iPad If the control currently in edit is not an edit control, <Result> is an empty string ("").
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 control name (uppercase/lowercase characters) corresponds to the one used when the control was created in the editor.
Java The case of controls belonging to supercontrols is not processed in this version.
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/10/2023

Send a report | Local help