"Jan Hoelterling" <jhoelterling...compuserve.com> wrote in message
news:c7vq7u$iq4$1...news.dbase.com...
> Hi Jan,
> what about other countries? Just because the program is installed inCanada
> or the U.S. doesn't limit the customer base, right?All members of the database would be residing in the same area. (Could be in
Europe but still would have the same structure.)
> On a side note: US ZIP format is 99999-9999
>That's called rushing. (Think faster than I can type) I always get confused
on the proper break in the code.
> I just use a 12 character field for the ZIP code and let the user enterwhat
> they want (no picture clause or other validation) because I don't want to
> get involved with formats...This would do fine for the display but when it came to the printed forms it
would look unprofessional to read T3J3j8 or 999090980.
> If I wanted to do this, I think I would create a table with country codes
> and a string for the picture clause, then present the user with adrop-down
> to pick the countryHave a table of country and abbreviations for the Canadian and US codes
already.
So I would add a field in the table call stcodestring and enter A9A 9A9 for
Can code. In the program use this.picture = this.rowset.stcodestring.value.
Am I reading this right?
Not sure if this would work because it might be a drain on the system
resources. I have custom classes for Can and US postal codes. Could add
custom classes for SIN/SSN and do an if or do statement to give visibility
to proper entryfield, freezing the screen first to prevent flicker.
What about a #define statement? On startup could it check for the country,
which you have them enter into a script at startup? Is it possible to use
an if statement within the .h file something like:
if countryabr := "CA"
#define stcode A9A 9A9
else
#define stcode 99999-9999
endif
Always more than one way to skin a cat.
Sure would like some opinions on the most efficient way to solve this
problem as most of the people using the program are not very computer
literate.
Tks Jan you've giving me all lot to think about.
Jan Horner (The Other Jan)
GM #449
PS: Can't even use Jan H.
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.683 / Virus Database: 445 - Release Date: 05/12/2004