Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I am making a Scientific Calculator which is nearly finished for my school project. Now, I need to make a History functions so that when ever the "equal" button is pressed it enters the equation into the History form with the Date and Time which can also be saved. So can someone help me do this??

Thanks.
Posted
Comments
Richard MacCutchan 27-Mar-15 3:31am    
Create a list and store the values as you do the calculations. You can then write the list entries to a file at a later point.
Member 10883536 27-Mar-15 3:44am    
But how??
Richard MacCutchan 27-Mar-15 4:00am    
Create a new class that will hold your values (number and DateTime). Then each time the equals buttom is pressed you create a new object of this class and add it to the list, or write it to the file. See https://www.google.com/search?q=vb.net+list for some suggestions on the use of lists.

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