Results 1 to 3 of 3
  1. #1

    Default Simple VB question

    I want to make a calculator with 3 text entry boxes where the person enters the two numbers and the operator (+-*/).

    How do I pass the operator to a variable so that VB sees it as an operator and not a string?

  2. #2
    Senior Member
    Join Date
    Dec 2004
    Wellington, NZ

    Default Re: Simple VB question

    Maybe this will help

    Alternatively you may try a case statement to look for the operator and multiply or subtract etc as the case may be which is probably easiest.

  3. #3
    Join Date
    Dec 2004

    Default Re: Simple VB question

    Personally i would go for the case statement as parry mentioned, i have a feeling I did just that in a similar project when I did a VB intro course years ago
    Morgenmuffel - This word needs to be a part of the english language, in fact you should use it in everyday conversation

Similar Threads

  1. A simple accounting question
    By Digby in forum PC World Chat
    Replies: 10
    Last Post: 21-08-2008, 12:09 PM
  2. WinTV200 Question...Just A Simple Question.....
    By SurferJoe46 in forum PressF1
    Replies: 8
    Last Post: 01-05-2008, 02:40 PM
  3. simple question
    By Codex in forum PressF1
    Replies: 3
    Last Post: 20-04-2005, 03:45 PM
  4. A simple question!
    By yingxuan in forum PressF1
    Replies: 7
    Last Post: 13-09-2004, 03:27 PM
  5. Simple Question
    By Big_Mountain in forum PressF1
    Replies: 4
    Last Post: 21-05-2004, 02:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts