[comp.sys.mac.programmer] FoxBASE user-interface programming

a_dent@vaxa.uwa.oz (03/17/90)

I'm just getting started with Foxbase, having switched from 4th Dimension
(please, NO flame wars).

What I need to do is update a field on the screen, depending on other fields
being entered.  EG:  someone enters a date and that generates a new licence
number.

This seems to me a fairly common task but possibly a little hard in FoxBase
because it locks you into an input-mode, whilst the READ statement is
activated.

On extensive reading of the manuals, the two alternatives I can work out are:

1)	use ON KEY to trap all keys that move between fields, and so perform
        some code between each field

2)	use the VALID function and embed the updating code in the validating
	procedure.

Neither of these methods is particularly nice so I'd appreciate suggestions.

Sorry for posting this before extensive experimentation but I need to sort
this matter out pretty quickly and I figure I'd probably have to ask the Net
*after* my testing, anyway.

Many thanks in advance.

Andy


Andy Dent                     A.D. Software phone 09 249 2719
Mac & VAX programmer          94 Bermuda Dve, Ballajura
a_dent@vaxa.uwa.oz            Western Australia  6066
Please note I am no longer associated with Schox Corporation!