I've been using RB 5.5 a total of 3 days now (evaluating),
and I'm stumped on something. I am reading a starting Visual
Basic book which has been helping me, but I'm at a dead end
at this point.
I'm trying to make a VERY simple calculator. What I did is
create 3 text boxes, then an OK button that simply adds the
first and second numbers together. The first number is in
the first box, second number in second box, and the answer
in the third box.
I did Dim First As Integer for the first box, Dim Second As
Integer for the second box, then the OK button is coded as:
Dim Total As Integer
Total = First + Second
EditField3.Text = Total
But it isn't working. I keep getting string expected errors.
I have no problem entering strings and displaying those in
another box, but I cannot seem to get numeric values. I have
been over the help screens and they show me how to add
numbers, which is a no brainer, BUT not using text boxes or
push buttons.
I'm confused how to do this.
Help!
BTW, I'm on Windows XP, not a Mac.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|