OpenEdge 应用程序用于求和两个数字

huangapple go评论53阅读模式
英文:

Openedge application to sum 2 numbers

问题

我是新手,尝试使用两个文本框和一个标签编写程序。我想要从两个文本框中获取值,计算总和,并在标签上显示它。

我定义了3个变量,2个用于文本框,1个用于保存总和。

英文:

iam new to open edge, iam trying to write a program with two text boxes and a label. So I want to get the values from the two text boxes and calculate the sum and display it on a label.

I defined 3 Var ,2 for text boxes and 1 for carrying the sum

答案1

得分: 1

DEFINE VARIABLE i1 AS INTEGER NO-UNDO . 
DEFINE VARIABLE i2 AS INTEGER NO-UNDO . 

DEFINE VARIABLE iSum AS INTEGER NO-UNDO . 

UPDATE i1 i2 WITH SIDE-LABELS.

ASSIGN iSum = i1 + i2 . 

DISPL iSum.
英文:
DEFINE VARIABLE i1 AS INTEGER NO-UNDO . 
DEFINE VARIABLE i2 AS INTEGER NO-UNDO . 

DEFINE VARIABLE iSum AS INTEGER NO-UNDO . 

UPDATE i1 i2 WITH SIDE-LABELS.

ASSIGN iSum = i1 + i2 . 

DISPL iSum.

huangapple
  • 本文由 发表于 2023年3月31日 02:32:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/75891795.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定