Results 1 to 7 of 7

Thread: I need some basic math help please

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2002
    Location
    Georgia
    Posts
    27

    Question I need some basic math help please

    How do I code this:

    A+B=C

    A and B are ComboBoxes and C is a textbox which is where the result will show. However, I don't want the user to see "B" Combobox, is this possible? Please help, this is a program I am writing for the US Army.

    Thanx in advance

  2. #2
    Hyperactive Member
    Join Date
    Jun 2002
    Posts
    299
    explain yourself a little more. Here are a few ideas, but I really don't know what you want.

    C=A+B
    A=C-B
    B=C-A


    P.S. US Army Intel? I work for Army intel in my home country, fine line of work.
    Last edited by snakeeyes1000; Aug 10th, 2002 at 06:55 PM.

  3. #3
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397

    Re: I need some basic math help please

    Originally posted by spcolsen
    How do I code this:

    A+B=C

    A and B are ComboBoxes and C is a textbox which is where the result will show. However, I don't want the user to see "B" Combobox, is this possible? Please help, this is a program I am writing for the US Army.

    Thanx in advance
    Why should B be a combobox, if the user can't see it, and therefore can't select any of its many selections???

    Are you saying the Value of B is Constant, until a Super User comes along and changes it?

    BTW, If you are asking this question, AND you truly work for the US Military, AND you are NOT still in training, AND This line of work is your MOS, then I Hope you get drummed out!


  4. #4
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    BTW, {I Assume you are a}Specialist, How did they allow you to get this job?

    When I joined, they asked me what I wanted to do, and I said "Program Computers, Sir!", and you know what they told me?
    "NO! You're Colorblind!!"

    Well, thats the kind of sense existing then.

    Now, as to you.

    Do you have any idea of the logic needed to accomplish the task?

    Without the requirement of a GUI, could you acheive the mission?

    Do you know what a GUI is?

    Am I harping on you just because of latent hostility towards the Army?

    WELL???!!!
    I DON'T HEAR YOU!!!



  5. #5
    Hyperactive Member
    Join Date
    Jun 2002
    Posts
    299
    well, this will sound harsh, but it is clear that spcolsen is not in the communication branch of military intelligence, because he doen't communicate very clearly.

  6. #6
    Addicted Member hypnos's Avatar
    Join Date
    Aug 2000
    Location
    UK
    Posts
    183
    Add this to an event:

    Code:
    If Len(a.Text) > 0 And Len(b.Text) > 0 Then c.Text = Val(a.Text) + Val(b.Text)
    Click on the combo box you don't want to see and set Visible to false in the properties window. Seems very strange doing this though...if it's not visible you might aswell just use a variable as this would result in quicker code.
    Last edited by hypnos; Aug 11th, 2002 at 07:15 AM.

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Aug 2002
    Location
    Georgia
    Posts
    27

    I need some basic math help please

    Well, I did figure it out thanks anyway. Yes I am in the Military and no this is not in my MOS. This is a project that I decided to undertake to make the whole concept of processing a Soldier less complicated. It Is a program that I hope will change the way the Military in general accomplishes it's missions when it comes to taking care of the soldier.

    SPC Olsen
    Ft. Stewart, GA

Posting Permissions

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



Click Here to Expand Forum to Full Width