InfoConnect for Airlines
GetControlsByName Method (Application)
Example 


The name of the control. To get all unnamed controls, enter an empty string.
Gets all of the controls running on this instance of InfoConnect that match the specified name.
Syntax
'Declaration
 
Public Function GetControlsByName( _
   ByVal name As String _
) As Object()
'Usage
 
Dim instance As Application
Dim name As String
Dim value() As Object
 
value = instance.GetControlsByName(name)
public object[] GetControlsByName( 
   string name
)

Parameters

name
The name of the control. To get all unnamed controls, enter an empty string.

Return Value

An array of controls that match the specified name. If an empty string is passed as the name, an array of unnamed controls is returned.
Exceptions
ExceptionDescription
System.ApplicationExceptionThe API service does not intialize successfuly.
Remarks
This method returns a collection of controls that have names that match.

Initially, the name of a control is an empty string. It can be changed to any text string for future control identification. The name might not be unique among all running sessions and is not saved in its session configuration file when the control is closed.

Example
This sample shows how to get all of the unnamed controls running in an application instance.

	
See Also