Hi GERRY,
GERRY DANEN was observed on 09-Oct-97, writing to ROGER SCUDDER
Something about: Error showing data
RS>> I would leave more room for the city also. If you consider the
RS>> longest probable input : District of Columbia you need at least
RS>> 21 characters. IMHO, 36 chars is usually good for names. Probably
RS>> wouldn't hurt to go more for the address line too... soooo... I
RS>> would go with something like this...
GD> No matter what the definition, the code should check for overflow,
GD> and if needed, truncate the data with perhaps an error message.
Of course! I was only suggesting lengths that would allow
_valid_ data to be entered without being truncated, while
not going overboard with extra space. If he wants to add
error handling that's up to him.
Roger Scudder
rscudder@usa.net
... 'If it ain't broke, you can probably still fix it.' - Tim Allen
--- Terminate 5.00/Pro
* TerMail/QWK * Terminate point system, the easiest in the world!
---------------
* Origin: Fidonet * Storm Front BBS (215)788-4662 v.34+ (1:273/216)
|