concatination question? 
Author Message
 concatination question?

What would be the best way to set the value of a text box
on a form to be the concatination of 3 different text box
values on the form?  Thanks in advance.


Tue, 11 Jan 2005 04:57:43 GMT  
 concatination question?
Set the text property of the target textbox directly to
the concatonated text properties of the 3 text boxes or
first put the three into variables and concatonate the
variables like this:

        Dim x As String = Me.textbox1.text
        Dim y As String = Me.textbox2.text
        Dim z As String = Me.textbox3.text
        Me.textbox4 = x & " " & y & " " & z

Quote:
>-----Original Message-----
>What would be the best way to set the value of a text
box
>on a form to be the concatination of 3 different text
box
>values on the form?  Thanks in advance.
>.



Tue, 11 Jan 2005 06:05:28 GMT  
 concatination question?
Wrong! (missed .text from Textbox4)

Shoud be:

Me.textbox4.text = Me.textbox1.text & Me.textbox2.text & Me.textbox3.text

Mikhail Berlyant
Data Integrator, Data Systems
Launch Your Yahoo!Music Experience  http://launch.yahoo.com
Brainbench MVP for Visual Basic   www.brainbench.com


Quote:
> Set the text property of the target textbox directly to
> the concatonated text properties of the 3 text boxes or
> first put the three into variables and concatonate the
> variables like this:

>         Dim x As String = Me.textbox1.text
>         Dim y As String = Me.textbox2.text
>         Dim z As String = Me.textbox3.text
>         Me.textbox4 = x & " " & y & " " & z

> >-----Original Message-----
> >What would be the best way to set the value of a text
> box
> >on a form to be the concatination of 3 different text
> box
> >values on the form?  Thanks in advance.
> >.



Tue, 11 Jan 2005 07:23:26 GMT  
 concatination question?
one way is

me.textbox1.text += me.textbox2.text & " "  (puts space)  [or]  & vbcrlf
(puts linefeed)

me.textbox1.text += me.textbox3.text & vbcrlf

me.textbox1.text += me.label1.tostring & " " (thats a bonus)


Quote:
> What would be the best way to set the value of a text box
> on a form to be the concatination of 3 different text box
> values on the form?  Thanks in advance.



Fri, 28 Jan 2005 14:07:01 GMT  
 concatination question?
Or use the Concat method in VB.NET...

Dim strings() As String = {TextBox1.Text, TextBox2.Text, TextBox3.Text}

TextBox4.Text = String.Concat(strings)

Steve


Quote:
> one way is

> me.textbox1.text += me.textbox2.text & " "  (puts space)  [or]  & vbcrlf
> (puts linefeed)

> me.textbox1.text += me.textbox3.text & vbcrlf

> me.textbox1.text += me.label1.tostring & " " (thats a bonus)



> > What would be the best way to set the value of a text box
> > on a form to be the concatination of 3 different text box
> > values on the form?  Thanks in advance.



Sat, 29 Jan 2005 05:47:28 GMT  
 concatination question?
Hey, thats great!

I didnt realize there was such a feature.  clearly you win.

I think that will help in something Im trying to do also.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Sat, 29 Jan 2005 06:58:54 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. String Concatination problems

2. concatination!!!!!??????

3. Efficient string concatination

4. Concatination of strings

5. string concatination

6. aggregate string concatination

7. questions,questions,questions.

8. Atten: Larry Serflaten - Re: Dictionary Questions, Questions, Questions

9. Questions!Questions!Questions

10. Questions Questions Questions

11. HELP QUESTION HELP QUESTION HELP QUESTION

12. 2 questions: Code doesn't work when I split database and Seek/Index question

 

 
Powered by phpBB® Forum Software