Results 1 to 3 of 3

Thread: Help Please....

  1. #1

    Thread Starter
    New Member nomats's Avatar
    Join Date
    Aug 2011
    Posts
    10

    Post Help Please....

    Hello,

    I am using the code below to find make an auto Google searcher to find car color, but the textbox won't work to get the color imputed also so it would say Car color red.


    Code:
    trem.SetAttribute("value", "car color"TextBox1.Text)
    Can anyone help please.

  2. #2
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Help Please....

    IMO, you're not cancatenating the ---"car color"TextBox1.Text--- part
    It should be concatenated using & or String.Concat
    Code:
    Imports System
    Imports System.Collections
    
    Public Class MainClass
        
        Shared Sub Main()
                 Dim s1 As String = "abcd"
                 Dim s2 As String = "ABCD"
    
                 ' concatenation method
                 Dim s3 As String = String.Concat(s1, s2)
                 Console.WriteLine("s3 concatenated from s1 and s2: {0}", s3)
    
                 ' use the overloaded operator
                 Dim s4 As String = s1 & s2
                 Console.WriteLine("s4 concatenated from s1 & s2: {0}", s4)
       End Sub
    
    End Class
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  3. #3

    Thread Starter
    New Member nomats's Avatar
    Join Date
    Aug 2011
    Posts
    10

    Post Re: Help Please....

    Quote Originally Posted by jggtz View Post
    IMO, you're not cancatenating the ---"car color"TextBox1.Text--- part
    It should be concatenated using & or String.Concat
    Code:
    Imports System
    Imports System.Collections
    
    Public Class MainClass
        
        Shared Sub Main()
                 Dim s1 As String = "abcd"
                 Dim s2 As String = "ABCD"
    
                 ' concatenation method
                 Dim s3 As String = String.Concat(s1, s2)
                 Console.WriteLine("s3 concatenated from s1 and s2: {0}", s3)
    
                 ' use the overloaded operator
                 Dim s4 As String = s1 & s2
                 Console.WriteLine("s4 concatenated from s1 & s2: {0}", s4)
       End Sub
    
    End Class
    Will check this out hope it work thanks...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width