CDO$HELP.HLB  —  CDO Commands, DEFINE  FIELD  Examples
    1.CDO>  DEFINE FIELD POSTAL_CODE
      cont>   DESCRIPTION IS /* A 5 DIGIT POSTAL_CODE */
      cont>   AUDIT IS /* WILL BE CHANGED TO 9 DIGITS EVENTUALLY */
      cont>   DATATYPE IS UNSIGNED LONGWORD
      cont>   SIZE IS 5 DIGITS.

      In this example, the DEFINE FIELD command creates the POSTAL_
      CODE field element.

    2.CDO>  DEFINE FIELD SEX
      cont>   DATATYPE IS TEXT SIZE IS 1
      cont>   VALID IF SEX = "M" OR SEX = "F".

      In this example, the DEFINE FIELD command creates the SEX field
      element. The VALID IF field property returns an error if you
      attempt to store a value other than M or F in the field that
      refers to this element.
Close Help