如何保存正在进行的字符串/字符值4gl / opensge

时间:2015-11-28 03:50:09

标签: character openedge

在触发器保存按钮中,我应用了语法

field-name = CAPS(var).

我的问题是,如何在我的字段名称中设置特定的单词/字符/短语?

WORDS WORDS WORDS **iPHONE** WORDS WORDS WORDS

1 个答案:

答案 0 :(得分:1)

对于Progress OpenEdge,有两种方法可以更改字段的屏幕值 - 在字段上显示某些内容,或者设置字段"屏幕值"属性,如:

DEFINE VARIABLE chField AS CHARACTER   NO-UNDO.

DEFINE FRAME f-demo
   chField FORMAT "X(10)"
   WITH OVERLAY TITLE "Demo Frame".

ON VALUE-CHANGED OF chField
   DO:

       /* Moves data from the screen field to the variable     */

   ASSIGN chField.

       /* Upper Case the field     */

   ASSIGN chField = CAPS(chField).

       /* One way to change the screen value     */

   DISPLAY chField WITH FRAME f-demo.

       /* Another way to change the screen value */

   ASSIGN chField:SCREEN-VALUE = chField.

   END.

   /* Activate the input   */

UPDATE chField WITH FRAME f-demo.

如果这不能回答您的问题,您需要澄清您正在寻找的内容。