Data Entry with editing and validation library module
Hello:
M2-DATA.ZIP is now available for freq or download from 1:273/101; it will soon be on DawgGone.
The archive, M2-DATA.ZIP, contains my implementation of a generic user input procedure capable of handling most data types (standard plus string) in Modula-2, providing editing features during input (home, end, insert, delete, cursor keys, etc.), and the ability to call client-module defined data validation procedures.
Getting input from the user can be as easy as making the following calls:
UserInput ("Enter your name: ", name, 25, stringArray, NameCheck);
UserInput ("Enter your age: ", age, 2, cardinal, NumberCheck);
UserInput ("Are you married? ", married, 1, boolean, NoValidation);
If you have the opportunity to download M2-DATA.ZIP, please let me know what you think of the code. I appreciate any constructive critism.
--
uucp: uunet!m2xenix!puddle!273!101!Peter.M..Perchansky