Hi Young, yes this Dim you speak of is the way in which you declare variables. You do Dim <variable name> As <variable type>. You can then assign values to these variables and perform calculations on them. For instance your code would need to be something like (but more added):
Dim intWidth as Integer
Dim intHeight as Integer
Dim intResult as Integer
IntWidth = 50
IntHeight = 100
IntResult = (IntWidth * IntResult) / 2
MsgBox(IntResult)
This would display a message simply saying 2500.
For more on variables take a look at:
http://visualbasic.about.com/od/quicktips/qt/vardeclare.htm
And any other beginner sites for VB.NET
HTH, Dai
------------------------------------------
Do or do not, there is no try. |
------------------------------------------