|
-
Feb 27th, 2010, 04:47 PM
#1
Thread Starter
New Member
Working with Given Codes in VB
Okay. My question is how do I set up a code to run it in order to get the answers? Example:
Code:
Dim a As Decimal = 2.5D
Dim b As Decimal = 4.0D
Dim c As Decimal = 12.7D
Dim i As Integer = 4
Dim j As Integer = 8
Dim k As Integer = 17
I want to find the value of X after this statement is executed?
Code:
Dim X As Integer = i + j
I am not asking for the results. The result is what I would like to figure out for myself. However, I am very new to VB and would like to know how to set this form. I am aware of variables being declared. What suggestions do you have for testing this and other codes like this?
Thank you.
-
Feb 27th, 2010, 04:57 PM
#2
New Member
Re: Working with Given Codes in VB
Is what you are asking having the ability to display the result? If so, there are many many many ways of doing so.
You can create a Label and simply put in:
Or you can use a Message Box:
Those are just a couple of ways of doing it.
-
Feb 27th, 2010, 05:06 PM
#3
Thread Starter
New Member
Re: Working with Given Codes in VB
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
|