7.25 DEFINE

LANSA

7.25 DEFINE


DEFINEコマンドは、ファンクション内でフィールドを定義するために使用します。

参照

DEFINEパラメータ

DEFINEの使用例

                                                         必須/省略可 

 

  DEFINE ------- FIELD -------- フィールド名 --------------------->

 

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

                                                         任意指定

             >-- TYPE --------- *REFFLD ------------------------>

                                *DEC

                                *PACKED

                                *CHAR

                                *NVARCHAR

                                *STRING

                                *SIGNED

                                *BIN

                                *DATE

                                *TIME

                                *DATETIME

                                *INT

                                *FLOAT

                                *BOOLEAN

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

                                数値

                                      桁数の増減      *PLUS

                                                     *MINUS

                                                     *NONE

                                      増減桁数 *NONE

                                                     数値

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

                                数値

                                      桁数の増減      *PLUS

                                                     *MINUS

                                                     *NONE

                                      増減桁数 *NONE

                                                     数値

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

                                参照フィールド名

             >-- LABEL -------- *DEFAULT ----------------------->

                                ラベル名

 

             >-- DESC --------- *DEFAULT ----------------------->

                                テキスト記述

 

             >-- COLHDG ------- *DEFAULT ----------------------->

                                欄見出し

                                |             |

                                 - 最大3 -

 

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

                                編集コード

 

             >-- EDIT_WORD ---- *DEFAULT ----------------------->

                                編集語

 

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

                                入力属性

 

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

                                出力属性

 

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

                                デフォルト値

 

             >-- TO_OVERLAY --- *NONE -------------- 1 --------->

                                #フィールド名    開始位置

 

             >-- SHIFT -------- *DEFAULT -----------------------|

                                キーボード・シフト