Automated number

Please support our Pascal and Delphi advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2005
Posts: 20
Reputation: satrix36 is an unknown quantity at this point 
Solved Threads: 0
satrix36 satrix36 is offline Offline
Newbie Poster

Automated number

 
0
  #1
Sep 18th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 41
Reputation: mrmike is an unknown quantity at this point 
Solved Threads: 0
mrmike mrmike is offline Offline
Light Poster

Re: Automated number

 
0
  #2
Oct 7th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 20
Reputation: satrix36 is an unknown quantity at this point 
Solved Threads: 0
satrix36 satrix36 is offline Offline
Newbie Poster

Re: Automated number

 
0
  #3
Oct 7th, 2005
Thank you for your help
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 41
Reputation: mrmike is an unknown quantity at this point 
Solved Threads: 0
mrmike mrmike is offline Offline
Light Poster

Re: Automated number

 
0
  #4
Oct 7th, 2005
if you need some code let me know and i'll try to get something knocked up
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 20
Reputation: satrix36 is an unknown quantity at this point 
Solved Threads: 0
satrix36 satrix36 is offline Offline
Newbie Poster

Re: Automated number

 
0
  #5
Oct 7th, 2005
Thank you. i mostly likely will later on.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Pascal and Delphi Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC