It may or may not intrest you that I have absolutely no programming
experience at all, and I am having to learn VB from a book instead of in a
classroom environment where more time can be spent actually covering the
topics. The code I provided is what I wrote on my own and did not come from
anywhere else.
It also just so happens that I did look in a programming book. In fact, I
looked in at least three different books and I also looked through the index
file for the MSDN library. I came across the topic reset method and I looked
at that, but it did not seem that the example provided was the correct
procedure to use.
I'm sure that you could probably find a more efficient way to write the
code, but as long as the program works, what difference does it make?
Just because you may not be having a fun day doesn't mean that you can't
provide a meaningful reply. How else do you learn if you don't ask a
question?
<al*******@user s.com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.com...
I meant that this group is not really intended to provide a homework
service.
The question title was about a reset button and the first line of the
question re-iterates that but then the remaining sample code has
nothing whatsoever to do with it.
The repeated
Dim totalLiters As Double = Convert.ToDoubl e(txtLiters.Tex t)
...
totalLiters = txtLiters.Text
shows either a lack of care in formulating the question or a lack of
understanding of what the code does.
I am having a not fun day, I admit it, and you just happened to come up
(un)lucky.
But... it does behoove posters to have actually attempted to solve
their problem before posting (maybe have read a programming book,
searched through previous posts or even read the class notes). People
here are generally pretty generous with their time and if you are lucky
someone may handhold you through this. Or maybe not.
Alan.