Stuneris
Stuneris

Reputation: 77

Visual Basic 2013 "Expression expected."

I have problem on this line:

TextBox1.Text = '0'

More code:

Private Sub Button18_Click(sender As Object, e As EventArgs) Handles Button18.Click
    TextBox1.Text = '0'
End Sub

I getting error Expression expected.

Upvotes: 1

Views: 5274

Answers (2)

Gustavo Villarreal
Gustavo Villarreal

Reputation: 1

Me.OtrosTableAdapter.Update1(id:=@id,nombre:=@Nombre,precio:=@Precio,Entrad:=@Entrad,salid:=@salid) which is the error? Every time I go to compile , it fails with the "@ "

Upvotes: 0

jpw
jpw

Reputation: 44871

Been a while since I worked with VB but I'm pretty sure you need to use double quotes so this line:

TextBox1.Text = '0'

should be:

TextBox1.Text = "0"

Upvotes: 1

Related Questions