Click here to Skip to main content
15,919,028 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi friends,


i want to generate a number with reference to previous number(ex: i want to generate 4 and if previous value is 3) n this should happen in one time button click, if i click the button again it should not generate the next value (ex: i got the number 4 on button click, if i click second time the value must remain 4 it should not generate 5)
Posted
Updated 1-Dec-11 18:38pm
v2
Comments
AmitGajjar 2-Dec-11 0:16am    
Can you elaborate your problem... didn't get it... :(
Sergey Alexandrovich Kryukov 2-Dec-11 0:21am    
Can you see "Improve question" above. Click it!
--SA
AmitGajjar 2-Dec-11 0:28am    
actually i am very new with codeproject. i didn't find any button with "Improve question"

1 solution

Is it like you want to generate next number with reference to last number stored in database and now replace it by generated number to database??
 
Share this answer
 
Comments
Vivek Shankar 2-Dec-11 0:39am    
new value should not replace the old one

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900