Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

7.30 DEFINE

Note
Note: Usage options

The DEFINE command is used to define a field for local use within a function, form, reusable part or WAM. 

Also See

7.30.1 DEFINE Parameters

7.30.2 DEFINE Examples


Panel
bgColor#ffffcc

                                                                                    Required 

  DEFINE 

No Format
                                                        Required    DEFINE

-------

FIELD

 FIELD --------

field name

 field name --------------------->

 -----------------------------------------------------------------

                                                         Optional              >-- TYPE

                                                                                    Optional

                  >-- TYPE ---------

*REFFLD

------------------------>

                                *DEC                                 *PACKED                                 *CHAR                                 *NVARCHAR                                 *STRING                                 *SIGNED                                 *BIN                                 *DATE                                 *TIME                                 *DATETIME                                 *INT                                 *FLOAT                                 *BOOLEAN              >-- LENGTH ------- *REFFLD


                                               *DEC
                                              *PACKED
                                              *CHAR
                                             *NVARCHAR
                                             *STRING
                                            *SIGNED
                                            *BIN
                                            *DATE
                                           *TIME
                                           *DATETIME
                                           *INT
                                           *FLOAT
                                           *BOOLEAN

             >-- LENGTH ----- *REFFLD ---------------------------->

                                numeric value                                       incr/decr      *PLUS                                                      *MINUS                                                      *NONE                                       # to incr/decr *NONE                                                      numeric value              >-- DECIMALS ----- *REFFLD


                                          numeric value
                                          incr/decr             *PLUS
                                                                    *MINUS
                                                                   *NONE
                                        # to incr/decr      *NONE
                                                                   numeric value

             >-- DECIMALS -- *REFFLD ---------------------------->

                                numeric value                                       incr/decr      *PLUS                                                      *MINUS                                                      *NONE                                       # to incr/decr *NONE                                                      numeric value              >-- REFFLD ------- *NONE


         
                               numeric value
                                         incr/decr            *PLUS
                                                                  *MINUS
                                                                  *NONE
                                        # to incr/decr     *NONE
                                                                  numeric value

             >-- REFFLD ---- *NONE ------------------------------->

                                name of reference field


                                       name of reference field

             >--

LABEL

----- *DEFAULT ------

*DEFAULT

----------------------->

                                label name


                                        label name

             >--

DESC

------ *DEFAULT ------

*DEFAULT

----------------------->

                                text description


                                       text description

             >--

COLHDG

-- *DEFAULT ------

*DEFAULT

----------------------->

                                column heading                                 |             |                                  - 3 maximum -              >-- EDIT_CODE ---- *DEFAULT


                                       column heading
                                      |                         |
                                        - 3 maximum -

            >-- EDIT_CODE - *DEFAULT ---------------------------->

                                edit code              >--


                                       edit code

          >-- EDIT_WORD

- *DEFAULT -----

*DEFAULT

----------------------->

                                edit word              >-- INPUT_ATR


                                       edit word

         >-- INPUT_ATR -- *DEFAULT ------

*DEFAULT

----------------------->

                                input attributes              >-- OUTPUT_ATR --- *DEFAULT


                                      input attributes

        >-- OUTPUT_ATR - *DEFAULT ---------------------------->

                                output attributes              >-- DEFAULT


                                      output attributes

       >-- DEFAULT ------

*DEFAULT

---------------------------->

                                default value              >--


                                    default value

      >-- TO_OVERLAY

--

-

*NONE

--------------

1

-------------->

                                #field name    start position              >-- SHIFT


                                     #field name          start position

     >-- SHIFT ----------

*DEFAULT

-----------------------------|

                                keyboard


                                    keyboard shift