Home All Groups Group Topic Archive Search About

consatenate text fom combobox & textbox

Author
30 Dec 2006 5:21 PM
Ivan Jericevich
I want to join the text from a combobox and a textbox preferably with a
space between, as string

Author
30 Dec 2006 5:32 PM
Tom Shelton
Ivan Jericevich wrote:
> I want to join the text from a combobox and a textbox preferably with a
> space between, as string

dim s as string
s = combobox.text & " " & textbox.text

or

s = string.format ("{0} {1}", combobox.text, textbox.text)

lot's of ways to do this :)  I would take the first option for simple
cases, but the second can be usefull if you need formating options.

--
Tom Shelton