英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论