I dont understand your question...
Dim its to declare things like string, integer blabla...
so i have been taking a course of VB recently...and ive been doing fine but now its gotten a bit more difficult...heres a link to the project i have to make...
any help will be greatly appreciated
https://rion.ws/Mesa/Project2Assign.pdf
im a bit comfused about the dim and constant....i dont know which one im suppose to use
I dont understand your question...
Dim its to declare things like string, integer blabla...
what would i declare for this project???
Accessories (Stereo system = $425.76, Leather interior = $987.41, Computer navigation = $1,741.23), Detailing (Standard = 0, Pearlized = $345.72, Customized = $599.99), Tax rate = 8%
so out of all of this which would be my const and dim???
Last edited by NextGen1; 03-05-2011 at 02:07 PM. Reason: didn't edit, using this as a test
it's like a calculator dude.....
On the button Calculate you must do something like this:
And on the CheckBox Checked Change do this:Code:TextboxTotal.Text = CInt(TextboxPrice.Text) + CInt(TextboxPrice2.Text) ' ETC...
Its almost the same to the radio buttons...Code:If YourCheckBox.Checked = True Then TextboxPrice.Text = "Your Price" End if if YourCheckbox2.Checked = True Then TextboxPrice2.Text = "Your 2 Price" End if
Its something like that xD
Now just think about it!
Last edited by Lyoto Machida; 03-05-2011 at 03:06 PM.
yair (03-06-2011)
Consts are "Constants" the value that they hold cannot be changed at runtime. Dim declares a variable which, like it sounds, holds a variable value. You can make it hold any value of the same type (String. Integer, Decimal). So if those prices are fixed within your program, declare them as constants.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
yair (03-06-2011)
In Visual Basic, Dim officially tells the compiler that we are going to declare a variable. A variable can change its value anywhere in the program.
Constants, on other hand are variable modifiers that represent a constant value, a value that can be computed at compile-time. Constants are fixed values and cannot change their value once initialized.
Having said that, use constants if you are not going to change the values. Else, simply use variables.
Lyoto Machida (03-06-2011)
thank you everyone...i understand better...
Alrighty glad we could be of service. Thread marked solved, I doubt there is any need for anyone to post further.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)