Syntax error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • munahmad
    New Member
    • Nov 2007
    • 1

    Syntax error

    when I write
    +DateTime.Now.T oLongDateString ()+ "<br />"



    the syntax error is detected on the positive sign shown at the start of argument
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Which version of VB you are using ?

    Comment

    • trendsoft
      New Member
      • Sep 2007
      • 1

      #3
      try this way
      Dim q1 As String = DateTime.Now.To LongDateString + "<br />"

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by munahmad
        when I write
        +DateTime.Now.T oLongDateString ()+ "<br />"
        the syntax error is detected on the positive sign shown at the start of argument
        Is this part of a statement? If it is a complete statement, what is it supposed to do?

        Comment

        Working...