Forums Register Login

customer id = exactly 8 digits?

+Pie Number of slices to send: Send
Hi,

my assignment (URLyBird 1.1.2) says that the customer id is "an 8 digit number".
Does this imply that only ids with exactly 8 digits should be accepted as valid ids?

In my current implementation a valid customer id consists of at least one up to a maximum of 8 digits.

regards,
Andy
+Pie Number of slices to send: Send
I think that's just your decision. In my application customer id must be exactly 8, otherwise a message is shown. That's why I stored it in a String and not an Integer But less than 8 digits will be fine too (I believe Roberto implemented it that way)
+Pie Number of slices to send: Send
 

Roel De Nijs wrote:(I believe Roberto implemented it that way)



Exactly!
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 992 times.
Similar Threads
Loosing Object-Oriented Design points - URLyBird
NX: Customer number: numeric, or alpha-numeric ok?
id value in B&S 2.3.1
leading zeroes, customer reference number
B&S: Customer ID
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:07:09.