Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1


|Views: 60|Likes:
Published by jarkohsas

More info:

Published by: jarkohsas on Feb 15, 2011
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





Functions: An Introduction
This chapter provides an overview to
Building Applications 
. Its purpose is to helpyou understand the Synon/2E concepts for using functions in your model.
Understanding Functions
A function defines a process that operates on files andfields. Synon/2E allows you to link functions together tocreate larger processes that become the building blocksof your application. Functions are the processes thatoperate on files and fields in your database. You canlink functions together as components to define anapplication system. You can implement severalseparate functions as a single HLL program. There aretwo ways that a function can be implemented:
External - the function is implemented as aseparate HLL program.
Internal - the function is implemented as sourcecode within that of the calling function.
Function Types
There are a number of different function types whichfall into the four classes listed below.
Standard functions
Built-In functions
Function fields
Message functions
Building ApplicationsBA 1--1
Standard functions specify entire programs orsubroutines. User-defined processing can be specifiedto take place at appropriate points within all standardfunctions. Standard functions are intended to provideready-made building blocks that, when put together,make up your application system. The standardfunctions are divided into the categories describedbelow.
Database Functions 
Database functions specify basic routines for updatingthe database. There are four different databasefunctions, each defining a subroutine to either create,change, delete, or retrieve data. Database functions areimplemented as part of an external standard function.All database functions are internal functions. Once youdefine a database function you can use it in manydifferent functions. The database functions are:
Create Object (CRTOBJ)
Change Object (CHGOBJ)
Delete Object (DLTOBJ)
Retrieve Object (RTVOBJ)
For more information:
on database functions, refer to this module,Chapter 3, ‘‘Defining Functions.’’
Device Functions 
Device functions specify interactive programs of anumber of types, and also report programs. Theseprograms consist of either a panel design or reportdesign and an action diagram. Device functions areexternal functions with the exception of Print Object(PRTOBJ) which is an internal function. You implementdevice functions as programs that operate overdatabases. The device functions are:
Display Record (DSPRCD)
Display Record 2 panels (DSPRCD2)
Display Record 3 panels (DSPRCD3)
Prompt Record (PMTRCD)
Function TypesBA 1--2Building Applications
Edit Record (EDTRCD)
Edit Record 2 panels (EDTRCD2)
Edit Record 3 panels (EDTRCD3)
Display File (DSPFIL)
Edit File (EDTFIL)
Select Record (SELRCD)
Display Transaction (DSPTRN)
Edit Transaction (EDTTRN)
Print File (PRTFIL)
Print Object (PRTOBJ)
For more information:
on device functions, refer to this module,Chapter 3, ‘‘Defining Functions.’’
User Functions 
User functions specify additional building blocks ofuser-written processing. User functions provide ameans of incorporating user programs and subroutinesinto Synon/2E generated applications. Their processingsteps can be specified with action diagrams oruser-written HLL. They can be implemented as inlinecode (internal functions) or calls to separate programs(external functions). The user functions are:
Execute Internal Function (EXCINTFUN)
Execute External Function (EXCEXTFUN)
Execute User Program (EXCUSRPGM)
Execute User Source (EXCUSRSRC)
For more information:
on user functions, refer to this module, Chapter3, ‘‘Defining Functions.’’
Function TypesBuilding ApplicationsBA 1--3

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->