简体   繁体   English

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

[英]How to save a string/character value in progress 4gl/openedge

in the trigger save button, i applied a syntax在触发器保存按钮中,我应用了语法

field-name = CAPS(var).

my question is,how do i save set a specific word(s)/character/phrase in my field-name?我的问题是,如何在我的字段名称中保存设置特定的单词/字符/短语?

WORDS WORDS WORDS **iPHONE** WORDS WORDS WORDS

For Progress OpenEdge, there's two ways to change the field's screen value - either display something on the field, or set the field's "SCREEN-VALUE" attribute, like so:对于 Progress OpenEdge,有两种方法可以更改字段的屏幕值 - 在字段上显示某些内容,或设置字段的“SCREEN-VALUE”属性,如下所示:

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.

If this doesn't answer your question, you'll need to clarify what you're looking for.如果这不能回答你的问题,你需要澄清你在寻找什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM