Use this function to return the data type information associated with the section field.
FieldType (Field, Section, Form, Group)
Parameter |
Description |
Field |
Enter the name of a field. The default is the current field. |
Section |
Enter the name of a section that contains the field you specified. The default is the current section. |
Form |
Enter the name of a form that contains the section and/or field you specified. The default is the current form. |
Group |
Enter the name of the form group that contains the form, section, and/or field you specified. The default is the current group. |
Typically, a field type will be a token of one or two characters used to control the display of the variable data in the field. Typically, a user will not be concerned with this value, since the form should be designed appropriately for data entry. However, a script may be written that does not assume the field’s type and must query the information to be accurate.
The value returned from this function is a string. If a field cannot be located matching the specified information, an empty string will be returned.
Here are some examples:
Function |
Result |
Explanation |
Return(FieldType( "First")) |
n |
Locate the field and return its type. This example assumes that the field was a numeric type. |
Return(FieldType( "Second")) |
k |
This example returns K which corresponds to the International Alphanumeric data type. |
Return(FieldType( "MyField", , "FRM")) |
m |
Locate the form specified within the current form group. Then locate MyField anywhere on that form. If found, the field’s type is returned. In this example, M corresponds with the X or Space field type. |
© Copyright 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices