English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I've got a really huge problem, tomorrow is my computation test but Icouldn't understand the teacher's explication about the visual basic's codes for multiply, divide, add, and subtract can someone please help me with that?

those code look something like this

Text1(Val)+Text3(val)=enter (I'm not pretty sure, thats why I need help LOL)

2006-12-03 12:26:55 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

It is very simple...

Code
------------------------------------
dim answer as integer

answer = text1.value + text3.value
----------------------------------------

It is opposite of what is normal in Math class.

Instead of the answer being on the right, it is on the left.

3 = 1 + 2

Code
-------------
a = 1
b = 2

c = a + b

msgbox "c = " & c
'A message box will come up saying 'c = 3'
---------------------------------
So
a - b = c is instead c = a - b
a x b = c is instead c = a * b
Note * is used instead of the 'x' so it is not confused with the
letter 'X'
a divided by b = c is instead c = a / b
Note divid sign is not used because it can not be found on the
keyboard.

2006-12-03 23:31:55 · answer #1 · answered by Ami 4 · 0 0

if i could understand what you're saying i'd have helped you.

but whatever you're on about, it won't be =enter as that defeats the whole point of getting the values from text1 and text3.

2006-12-03 12:32:09 · answer #2 · answered by piquet 7 · 0 0

fedest.com, questions and answers