WackoWolf
Active member
I am new to Vb. The question I have might seem stupid to most but I am lost and need some help.
This is what I have for the code.
It is saying that for Adult in the beginning of "Adult = (Val(TextAdult.Text) * Adult)"
This is what it says "Constant cannot be target of an Assigment"
How can I write this so that I don't get this error?
Before I try to you Const I had no problems running the code, but now that I want to use "Const" I have errors. What am I doing wrong?
Any and all help would be cool.
Thank You
WackoWolf
[/SIZE]
This is what I have for the code.
VB.NET:
[SIZE=2][COLOR=#0000ff]Const[/COLOR][/SIZE][SIZE=2] Adult = 30
Adult = (Val(TextAdult.Text) * Adult)
It is saying that for Adult in the beginning of "Adult = (Val(TextAdult.Text) * Adult)"
This is what it says "Constant cannot be target of an Assigment"
How can I write this so that I don't get this error?
Before I try to you Const I had no problems running the code, but now that I want to use "Const" I have errors. What am I doing wrong?
Any and all help would be cool.
Thank You
WackoWolf
[/SIZE]