Dim Var4 As String = "This is an " & Var1 & " of how you can put the value of a variable in a string and the result of an equation. (" & Cint((Var2 + Var3) / Var2) & ")"
Visit my website, there you will find interesting thing's for VB. (I use VB 2008 Express ) Like very useful custom control's, Subs, Functions, Classes (The SFC file), tutorial's, video's and downloads.
DIM myVariable as decide on the flow (or int or regardless of) Do your self a choose and study a real language like C# or Java. (DIM - comes from "measurement" which has no meaning anymore... that's a relic from the former days, and a thoroughly mistaken time period for affirming a variable.) In sq., you say "declare"... I declare, that makes much better experience. And no, you should apply the "textual content" resources of something... you desire a large determination, not a string. seen uncomplicated lets you be lazy and it really is going to immediately convert that string to a large determination, yet that enables the consumer to form something like "eighteen p.c." that may't be switched over to a large determination, causing your software to crash because of consumer enter, that is a really undesirable component. susceptible typing is a really undesirable component really, and VB is the single best source of undesirable code in the global, commonly for that reason.
Answers & Comments
Verified answer
Dim Var1 As String = "Example"
Dim Var2 As Integer = 3
Dim Var3 As Integer = 4
Dim Var4 As String = "This is an " & Var1 & " of how you can put the value of a variable in a string and the result of an equation. (" & Cint((Var2 + Var3) / Var2) & ")"
Visit my website, there you will find interesting thing's for VB. (I use VB 2008 Express ) Like very useful custom control's, Subs, Functions, Classes (The SFC file), tutorial's, video's and downloads.
If you want more help you can Email me: [email protected]
http://www.freewebs.com/aarondewindt/index.htm
DIM myVariable as decide on the flow (or int or regardless of) Do your self a choose and study a real language like C# or Java. (DIM - comes from "measurement" which has no meaning anymore... that's a relic from the former days, and a thoroughly mistaken time period for affirming a variable.) In sq., you say "declare"... I declare, that makes much better experience. And no, you should apply the "textual content" resources of something... you desire a large determination, not a string. seen uncomplicated lets you be lazy and it really is going to immediately convert that string to a large determination, yet that enables the consumer to form something like "eighteen p.c." that may't be switched over to a large determination, causing your software to crash because of consumer enter, that is a really undesirable component. susceptible typing is a really undesirable component really, and VB is the single best source of undesirable code in the global, commonly for that reason.
Dim A as String = "ABCDE"
Label1.caption " see " & A & " this"
Put this in form load code:
dim Math as integer
Math = 1 + 2
Label1.caption = "One + two is: " & Math & "Thanks"