SRL Archive - Help

VB Project Giving


sm321

2012-02-07 05:44:52

If I made something on Visual Basic, how would I give it to someone else on a different computer? Thanks :)

Kyle Undefined

2012-02-07 09:09:30

Like, the source code or just the program? Also, what version of VB?

sm321

2012-02-08 04:43:02

From: Kyle Undefined
Like, the source code or just the program? Also, what version of VB?


I'm on Visual Basic 2010 Express, but that doesn't matter now, I know how, thanks anyway :). But what is wrong now is this:
If Val(Label1.Text) = Val(TextBox1.Text) Then
Val(Label14.Text) = "Goal Reached!"

Says 'Expression is a value and therefore cannot be the target of an assignment.'

Kyle Undefined

2012-02-08 09:51:03

Val() returns a number from a string, do this:

If Val(Label1.Text) = Val(TextBox1.Text) Then
Label14.Text = "Goal Reached!"

sm321

2012-02-09 03:59:11

From: Kyle Undefined
Val() returns a number from a string, do this:

If Val(Label1.Text) = Val(TextBox1.Text) Then
Label14.Text = "Goal Reached!"


Thanks :)