|
-
Jan 23rd, 2011, 11:27 PM
#1
Thread Starter
Junior Member
Why is it converting to long?
Im having problems with this code
MsgBox(txtInsertName.Text And txtInsertAge.Text)
This code will work and gives me the text in the text box
MsgBox(txtInsertName.Text)
But if I put "and txtInsertAge.text" then it gives an exception on whatever value is in txtInsertName stating;
Conversion from string "bob" to type 'Long' is not valid.
-
Jan 23rd, 2011, 11:30 PM
#2
Re: Why is it converting to long?
and is a bitwise operator.
for string concatenation use &
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Jan 23rd, 2011, 11:34 PM
#3
Thread Starter
Junior Member
Re: Why is it converting to long?
thanks. works now. and looks quite a bit familiar.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|