Click or drag to resize

OhioFields Class

Contains a collection of the 3270/5250 fields in the virtual screen. It provides methods to iterate through the fields, find fields based on location, and find fields containing a given string. Each element of the collection is an instance of OhioField. OhioFields can only be accessed using the OhioScreen.Fields property. OhioFields is a static view of the virtual screen and does not reflect changes made to the virtual screen after its construction. The field list can be updated with a new view of the virtual screen using the Refresh method.
Inheritance Hierarchy
SystemObject
  Flex.Hal.OhioOhioFields

Namespace: Flex.Hal.Ohio
Assembly: Flex.Hal.Ohio (in Flex.Hal.Ohio.dll) Version: 6.0.8219.1880
Syntax
public sealed class OhioFields : IEnumerable

The OhioFields type exposes the following members.

Properties
 NameDescription
Public propertyCount Gets the number of OhioField contained in the collection.
Public propertyItem Gets the OhioField object at the given index. "One based" indexing is used in all Ohio collections. For example, the first OhioField in this collection is at index 1.
Top
Methods
 NameDescription
Public methodFindByPosition Searches the collection for the target position and returns the OhioField object containing that position.
Public methodFindByString Searches the collection for the target string and returns the OhioField object containing that string. The string must be totally contained within the field to be considered a match. If the target string is not found, a null will be returned.
Public methodRefresh Updates the collection of OhioField objects. All fields in the current virtual screen are added to the collection. Indexing of OhioField objects will not be preserved across refreshes.
Top
See Also