|
-
Aug 10th, 2002, 06:45 PM
#1
Thread Starter
Junior Member
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
-
Aug 10th, 2002, 06:51 PM
#2
Hyperactive Member
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.
-
Aug 10th, 2002, 08:24 PM
#3
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!
-
Aug 10th, 2002, 08:34 PM
#4
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!!!
-
Aug 10th, 2002, 08:41 PM
#5
Hyperactive Member
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.
-
Aug 11th, 2002, 07:11 AM
#6
Addicted Member
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.
-
Aug 13th, 2002, 11:40 AM
#7
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|