WinStudio
IWSForm interface
Returns the name of the component that currently has focus.
object.GetCurrentComponentName( )
Part |
Description |
object | Required. The name of a valid form object. |
The return value is a string containing the name of the current component.
NOTE: This method does not return a component name when the method is called in response to a data change event on an edit box. When focus moves from the edit box containing changed data, the component is no longer the current component.
Sub Main() Dim strCompName As String strCompName = Application.FindForm("formName").GetCurrentComponentName() Application.ShowMessage(strCompName) End Sub