943,733 Members | Top Members by Rank

Ad:
Sep 18th, 2005
0

Automated number

Expand Post »
Hi,
I've been asked to created a program for my local video rental shop, that can store the details of the members, videos, dvds etc. On the for were the user adds a member, I am wanting some code that will generate the membership number automaticaly in a edit box. E.g. the firs member would have the membership number "0001", when I add another the membership number would be "0002". Other words the membership number goes up by one each time.

Could someone please help me.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
satrix36 is offline Offline
20 posts
since Aug 2005
Oct 7th, 2005
0

Re: Automated number

easiest solution would be to find the count of the number of members currently listed, add 1 when new user is created, then use the format command to format the string with leading zero's
Reputation Points: 11
Solved Threads: 0
Light Poster
mrmike is offline Offline
41 posts
since May 2005
Oct 7th, 2005
0

Re: Automated number

Thank you for your help
Reputation Points: 10
Solved Threads: 0
Newbie Poster
satrix36 is offline Offline
20 posts
since Aug 2005
Oct 7th, 2005
0

Re: Automated number

if you need some code let me know and i'll try to get something knocked up
Reputation Points: 11
Solved Threads: 0
Light Poster
mrmike is offline Offline
41 posts
since May 2005
Oct 7th, 2005
0

Re: Automated number

Thank you. i mostly likely will later on.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
satrix36 is offline Offline
20 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Pascal and Delphi Forum Timeline: validation in edit boxs
Next Thread in Pascal and Delphi Forum Timeline: Drag 'n' drop from directory to another





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC