OpenEdge ABL (Progress) 新人初学1 -- 简易计算器

本文记录了作者学习OpenEdge ABL(原Progress)语言的过程,分享了一个使用该语言编写的简易计算器程序,展示了其面向对象特性。与Java不同,OpenEdge ABL没有main方法,参数可以为Output类型,且使用character类型表示字符串。
摘要由CSDN通过智能技术生成

拖了好长时间的第一篇博文。

开始写主要目的是把新学习这门冷门语言的过程记录下来。因为新工作重心是OpenEdge ABL (原Progress) 语言的使用,对于原来只接触过Java并且不算精通的自己来说,还是有一定难度。

这门冷门的语言背景先不在这里介绍。也是因为在工作中发现这门语言的资料和问题解决方法在网上比较少。所以,多一个人分享经验多一件好事儿嘛。

学习阶段用Progress写的一个练手用计算器程序。用到了Open Edge ABL 的面向对象特性,和Java类似。

 

和Java的不同点:

  1:没有类似main method 的入口方法。需要从.p文件调用.cls文件的方法来执行。

  2:方法参数并不是只能Input。也有Output 参数。在这个例子中没有体现。

  3:参数和变量声明类型以数据类型为主,并没有String类型,需要字符串需要character类型。

 

CalculateInterface.cls :

USING Progress.Lang.*.

INTERFACE CalculateInterface:
    METHOD PUBLIC DECIMAL summation(INPUT number1 AS DECIMAL, INPUT number2 AS DECIMAL).
    METHOD PUBLIC DECIMAL subtraction(INPUT number1 AS DECIMAL , INPUT number2 AS DECIMAL).
    METHOD PUBLIC DECIMAL mutiplication(INPUT n
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
QAD ERP专用数据库及程序开发语言手册 ABL Reference Preface This Preface contains the following sections: * Purpose * Audience * Organization * Using this manual * Typographical conventions * Examples of syntax descriptions * Example procedures * OpenEdge messages * Third party acknowledgements Purpose This book describes ABL (Advanced Business Language), which is the OpenEdge® programming language for building business applications. It covers all ABL statements, functions, phrases, operators, preprocessor directives, special symbols, widgets, handles, classes, interfaces, attributes, methods, properties, and events. Audience This book is intended for programmers who develop applications using ABL and for anyone who needs to read and understand ABL code. Organization This book consists of the following sections: * A dictionary of ABL statements, functions, phrases, operators, preprocessors, and special symbols. * A dictionary of ABL widgets. * A dictionary of ABL handles. * A dictionary of ABL attributes and methods (for handles). * A dictionary of ABL handle-based object events. * A dictionary of ABL classes and interfaces. * A dictionary of ABL properties and methods (for classes). * A dictionary of ABL class events and event methods * An index of ABL keywords. Using this manual OpenEdge provides a special purpose programming language for building business applications. In the documentation, the formal name for this language is ABL (Advanced Business Language). With few exceptions, all keywords of the language appear in all UPPERCASE, using a font that is appropriate to the context. All other alphabetic language content appears in mixed case. For the latest documentation updates see the OpenEdge Product Documentation Overview page on PSDN: http://communities.progress.com/pcom/docs/DOC-16074. References to ABL compiler and run-time features ABL is both a compiled and an interpreted language that executes in a run-time engine.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值