ACCEPT ROUTINES


You won't be long into computing in any computer language until you realise that you need some good stable routines for accepting into your programs data typed at the keyboard. The standard Euphoria input routines such as gets() just do not provide the sort of control that you need to oblige the computer user to type in the appropriate sort of data and to avoid messing up the computer screen.

The header (include) file facptnew.e contains the following global functions which accept typed data into fields specified by yourself:

Also included in the file are four global functions which use these routines to let you view, enter and modify record data using a simple screen form:

These form routines are accessed using a sequence which in the demo program I have named meta_data (which means data about data).

Full editing (use of insert, backspace, delete keys) is provided for fields of all types except formatted numeric fields where only backspace is supported.

Abundant comment notes in the files will tell you all you want to know about the routines, how to interact with them and how to modify them to suit your own requirements, so I won't go on any more about them here.

© Fred Mangan 2006
Townsville, Qld 4814, Australia.
email: Mangan_Fred@yahoo.com.au (weekly pick-up)