A Field object contains the properties for a field in the data dictionary. This object has no methods.

Properties

NameData TypeDescription
AllowValues BooleanTrue if the Values button in Stonefield Query is enabled for this field.
CalculatedBooleanTrue if this is a calculated field. If the SQExpression property of a calculated field is False, set this property to False as well.
CaptionCharacterThe caption for the field.
CommentCharacterThe comment for the field.
DecimalsNumericThe number of places after the decimal.
ExactBooleanIf this property is True (which it is by default) and the user filters on this field, Stonefield Query adds blanks to the filter value when the "equals" operator is used so the search is exact.
ExpressionCharacterThe expression to determine the value of this field if it's a calculated field.
FieldListCharacterA comma-delimited list of aliased field names used to calculate the value of this field if it's a calculated field. Leave this property blank if SQExpression is False.
FieldNameCharacterThe aliased name of the field. You don't have to fill in this property because that's done automatically when you add the field to the collection.
FilterableBooleanTrue if the user can filter on this field.
FormatCharacterThe format for this field.
HeadingCharacterThe default column heading for this field in a report.
LengthNumericThe width of the field.
OtherCharacterStores user-defined information for the field; Stonefield Query doesn't use this property for anything but your scripts could.
OutputLengthNumericThe output width of the field. You don't have to fill in this property unless it's different than Length.
OutputTypeCharacterThe output data type of the field; see "Type" below for a list of valid data types. You don't have to fill in this property unless it's different than Type. Note setting this doesn't mean Stonefield Query converts the values in the data to the specified type; you are simply informing Stonefield Query what the data type of Expression is.
PictureCharacterThe picture for this field.
ReportableBooleanTrue if the user can report on this field.
RolesCharacterA comma-delimited list of roles that can access the field (blank means everyone can access it).
SortableBooleanTrue if the user can sort on this field.
SQExpressionBooleanTrue if this calculated field uses a Stonefield Query expression; False if the expression is sent as is to the database engine.
TypeCharacterA single character representing the data type of the field:
  • W: Blob
  • C: Character
  • Y: Currency
  • D: Date
  • T: DateTime
  • B: Double
  • G: General
  • I: Integer
  • L: Logical
  • M: Memo
  • N: Numeric
  • V: Varchar
  • Q: Varbinary
UserDefinedCharacterUnless this field is defined as an enumerated field, this property can contain anything you want to place in it.
ValuesMethodCharacterThe expression to use to display the unique values for this field. This should normally be left alone unless you need to do some specific processing to display the list of values.

See Also
Fields Collection | Field Properties