GetCurrentComponentName method (WinStudio scripts)
Applies To
IWSForm interface
Definition
Returns the name of the component that currently has focus.
Syntax
object.GetCurrentComponentName( )
| Part | Description | 
| object | Required. The name of a valid form object. | 
Remarks
The return value is a string containing the name of the current component.
Nota:  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.
                           		
                        
 
                        	     
                     Example
Sub Main()
   Dim strCompName As String
   strCompName = Application.FindForm("formName").GetCurrentComponentName()
   Application.ShowMessage(strCompName)
End Sub