Results 1 to 3 of 3

Thread: String concatenation in VB6

  1. #1
    Join Date
    Mar 2009
    Posts
    89

    String concatenation in VB6

    Hi friends,

    I am want to concatenate string in VB 6.I don't know how to do it can anyone help me out with this or can explain me with an example.I have tried a lot to find it over internet but it was of no use.

    Thanks in Advance.


    Amd 9550
    915 MSI Motherboard with Intel chipset
    1gb ram
    300 gb HDD
    Radeon 9550

  2. #2
    Join Date
    Dec 2008
    Posts
    123

    Re: String concatenation in VB6

    Sure i will help you out with this for that you need to use the following code as an example for you.

    Dim x As String = "Con" & "caten" & "ation"

    Dim y As String = "Con" + "caten" + "ation"
    The preceding statements set both x and y to "Concatenation".

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    Re: String concatenation in VB6

    There is one more way of doing it by following way.

    Code:
    Option Explicit  
    Private Sub Form_Load()  
         Dim strCC1 As String  
         Dim strCC2 As String  
         Dim intNBR As Integer  
              intNBR = 1  
    
              strCC1 = "Concat &" & intNBR  
              strCC2 = "Concat +" + intNBR  
    End Sub

Similar Threads

  1. Concatenation of several large files
    By Gafur in forum Software Development
    Replies: 4
    Last Post: 12-02-2010, 10:58 AM
  2. Bitwise Concatenation In Int
    By Aakarshan.d in forum Software Development
    Replies: 5
    Last Post: 25-01-2010, 02:41 PM
  3. How to Manipulate String using PHP String Functions
    By ComPaCt in forum Software Development
    Replies: 3
    Last Post: 21-09-2009, 09:07 AM
  4. String Comparision in vb.net
    By In2TheBlues in forum Software Development
    Replies: 3
    Last Post: 24-06-2009, 02:39 PM
  5. String Concatenation in mySQL
    By JPGargoyle in forum Software Development
    Replies: 2
    Last Post: 18-05-2009, 10:38 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,040,269.50604 seconds with 16 queries