Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a variable x which is displayed in a text box every time a button is clicked. the value of x is saved on clicking an ok button after u enter a value in another text box, (tb1) in a different form. so everytime i save a new value from tb1 i want the new value to be shown without replacing the old value. what do i do for this?
Posted
Comments
Mostafa Asaduzzaman 2-Jun-15 0:46am    
why don't you create an array to store the values. A typed variable cannot store multiple values. Each time you click button save to the array and index it. thats easy.

1 solution

I suggest a List(of string).
In this List you could append by .add a/the new value ...
 
Share this answer
 

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