Programming with Reflection

image\rwnprg32.gif GetFieldAttributes method

 

Syntax Attribute = object.GetFieldAttributes(Row, Column)

 

Description

Returns the attributes of a field.

Arguments

Row Argument type: Integer
Used with Column to identify a field in the host screen. You can use rcMouseRow to specify the row where the mouse was last clicked.

Column Argument type: Integer
Used with Row to identify a field in the host screen. You can use rcMouseCol to specify the column where the mouse was last clicked.

Return

Attribute Return type: Integer
An attribute for the field at the specified screen location. This value is derived by adding the value for each attribute. The return is 10 if you execute this method without a host connection.

Attribute

Value

rcProtected

1

rcUnprotected

2

rcPenDetect

4

rcNotPenDetect

8

rcHiliteBlink

16

rcHiliteReverse

32

rcHiliteUnderscore

64

rcHiliteHalfBrite

128

rcColumnSeparator

256

rcHotspot

512

rcNonDisplay

1024

 For example, if the specified field is protected and not pen-detectable, the values for those attributes (1 and 8) are added, and 9 is returned.

 Here's how to determine if a field is protected (pen detect ability not important):

Dim attribute As Long
attribute = Session.GetFieldAttributes(12, 25)
If attribute And rcProtected Then
MsgBox "This field is protected."
End If

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command