Hi Im very new to Visual BAsic. I am having problems putting two variables into a string
To test my code Im using a msgbox to show the results
The tests im doing is this
mytest = variable1
and
mytest = variable2
Followed by the msg box.. both are printing the correct infomation
However I want to do this:
mytest = variable1 & variable
When I do this it will only print out the first variable .. the second one seems to not exist and even if I make it like this:
mytest = variabl1 & "hello world"
the hello world is not printed out...
Can someone tell me what im doing wrong..
the two variables are defined as type string and so is mytest
So im really not sure what im doing wrong.. any help would be much appreciated!
To test my code Im using a msgbox to show the results
The tests im doing is this
mytest = variable1
and
mytest = variable2
Followed by the msg box.. both are printing the correct infomation
However I want to do this:
mytest = variable1 & variable
When I do this it will only print out the first variable .. the second one seems to not exist and even if I make it like this:
mytest = variabl1 & "hello world"
the hello world is not printed out...
Can someone tell me what im doing wrong..
the two variables are defined as type string and so is mytest
So im really not sure what im doing wrong.. any help would be much appreciated!