[comp.sys.mac.hypercard] Data entry & control in a long field ...

Griffiths.R@AppleLink.Apple.com (Rob Griffiths) (10/03/90)

Before I start a new scripting project, I thought I'd check and see if 
anyone has done anything similar in the past...the situation is:

I am looking for a set of scripts to control and verify data entry into a 
large field.  I have a stack that contains a set of three 26-row fields, 
all of which must be populated with information.  I am looking for a 
script to handle/prevent/manage the following:

  - All entries must be numeric integers
  - No commas (or other non-numeric figures) may be entered
  - The spacing of the fields cannot be changed (ie if row 7 is blank,
    it must remain blank -- no additional returns can be entered)
  - The total number of rows in each field cannot change (26 total)
  - There must be some recovery procedure if a user enters a large number
    that 'wraps' on the line, thus destroying the spacing

I know all of the methods for controlling these events; I'd just like to 
avoid re-scripting it if someone has an existing solution ("leveraging off 
of third parties" -- a popular topic at Apple right now!) ...

If you have anything that you think might be useful, I would appreciate 
hearing from you!

thanks,
rob


- my opinions are just that ... mine!