PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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).
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.
Remarks
To identify the control that opens a popup menu, use ControlPopupOwner.
Component : wd250obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment