Home All Groups Group Topic Archive Search About
Author
13 Apr 2005 1:40 PM
brix_zx2
Okay this is a seriously basic question.  If I have a textbox (txtSomething)
how would I put the value of that textbox into a variable (varHere).  I was
thinking something to the affect of:

varHere = txtSomething.Text

but that's wrong.  Can anyone help me out?

Author
13 Apr 2005 2:44 PM
Oenone
brix_zx2 wrote:
> varHere = txtSomething.Text
> but that's wrong.  Can anyone help me out?

That looks ok to me -- in what way is it wrong? Are you getting an error
message, and if so, what is it?

--

(O)enone
Author
13 Apr 2005 2:51 PM
Sarika
Yes it would be helpful if you could tell in what way it is wrong.

As long as varHere is of type String the assignment should work.

Hope this helps!
Author
13 Apr 2005 3:37 PM
Oenone
Sarika wrote:
> Yes it would be helpful if you could tell in what way it is wrong.

As I said in my previous message, I can't see anything wrong with it.

> As long as varHere is of type String the assignment should work.

I agree.

What error do you get?

--

(O)enone