By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,919 Members | 1,625 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,919 IT Pros & Developers. It's quick & easy.

Concatenate two text boxes

P: 1
hi how to use the string concatenation.
it means to add the text in two textboxes into one textbox by using string concatenation.
Sep 5 '07 #1
Share this Question
Share on Google+
2 Replies


Expert 5K+
P: 8,434
The general syntax to concatenate two strings would be Variable = String & String. The variable can also be a control property such as Text1.Text if you like. And each of those String expressions can be absolutely any expression which resolves to a string. In other words, it can be a simple string literal in quotes, or a variable, a function, or another control property (or the same one, if you like), or all sorts of combinations of the above.
Sep 5 '07 #2

jamesd0142
100+
P: 469
hi how to use the string concatenation.
it means to add the text in two textboxes into one textbox by using string concatenation.

dim strtest as string

strtest = text1.text + Text2.text
Sep 14 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.