ScreenUPG
fieldCount Method
Example 



Specifies the type of fields to count. Possible values (defined in class ScreenUPG.ScreenUPG) include: FIELDTYPE_ANY, FIELDTYPE_PROTECTED, and FIELDTYPE_UNPROTECTED.
Returns the number of fields of the specified type.
Syntax
'Declaration
 
Public Function fieldCount( _ 
   ByVal inType As Integer _ 
) As Integer
'Usage
 
Dim instance As ScreenUPG 
Dim inType As Integer 
Dim value As Integer 
  
value = instance.fieldCount(inType)
public int fieldCount( 
   int inType 
)
public: 
int fieldCount( 
   int inType 
) 

Parameters

inType
Specifies the type of fields to count. Possible values (defined in class ScreenUPG.ScreenUPG) include: FIELDTYPE_ANY, FIELDTYPE_PROTECTED, and FIELDTYPE_UNPROTECTED.

Return Value

The number of fields found of the specified type.
Example
int fields = screen.fieldCount(ScreenUPG.ScreenUPG.FIELDTYPE_ANY);
Dim fields As Integer
            
fields = screen.fieldCount(3)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ScreenUPG Class
ScreenUPG Members
FIELDTYPE_PROTECTED Property
FIELDTYPE_UNPROTECTED Property
FIELDTYPE_ANY Property