Retrieves a handle to the Field automation object.
- Methods
- First: Sets the field properties of the first
field.
- Next: Sets the field properties to the next field.
- Prev: Sets the field properties to the previous
field.
- Properties
- Length: Field length.
- Modified: True if the field has been modified,
False otherwise.
- Pos: Field position.
- Protected: True if the field is protected, False
otherwise.
- Text: Used to set or retrieve the field text.
- Type: Field type. 0 - AlphaNumeric, 1 - Alpha,
2 - Numeric Shift, 3 - Numeric All, 5 - Numeric Dup, 7 - Numeric Sign.
- Visible: True if a display field, or False if
a non-display(hidden) field.
- Returns
- A Field object handle.
- Remarks
- The First() method must be called initially to
set the properties of the first field in the host screen.
- Example
Set bzhao = CreateObject("BZWhll.WhllObj")
bzhao.Connect
set fld = bzhao.Field()
fld.First
While ( fld.Protected )
MsgBox fld.Text
fld.Next
Wend
MsgBox "The first unprotected field is at position " & fld.Pos