摘要
VFP是基于数据库管理和应用程序开发的高级语言。VFP中可以用子程序、过程、函数三种方式实现模块程序设计。这三种方式功能相同,但格式、调用方式、数据传递方式又不尽相同;这三种方式可以相互转换。学生在学习中常常不能确认应该采用哪种方式实现模块功能。为此,详细分析了三种方式的设计过程,以帮助学生理解并掌握这三种方式的结构及其转换格式,各种不同格式的调用方式,以及它们的用处和模块的编程方法。
Visual FoxPro is an advanced language which is based on database management and application program development.There are three kinds of modularized programming method including subprogram,procedure and function.Though they have the same function,they are different in format program invocation,data transmission and can be transformed to each other which make the students unclear about which method they should use to design the module.A detailed analysis of the three methods and some examples are given to help the students to learn the structure,transition and invocation of the three methods and master the modularized program design easily.
出处
《计算机时代》
2012年第11期44-47,共4页
Computer Era
关键词
子程序
过程
函数
局部变量
subprogram
procedure
function
local variable