Web Analytics Made Easy -
StatCounter vbs string problem - CodingForum

Announcement

Collapse
No announcement yet.

vbs string problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • vbs string problem

    ' returns a message box of the date and time
    dim today
    today = msgbox("The time is " & time() "and the date is " & date())


    i have a problem with this string..can someone help me?

    i got the first part right.. the time part works, but when i try and do the second part i get a synatx error, and i'm not sure why

  • #2
    you are missing an &

    today = msgbox("The time is " & time() & "and the date is " & date())

    also you might want to add a space before the end so you do not run into the two strings merging. " The time is 00:00and the date....."
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

    Comment


    • #3
      Thanks A1ien51 that was a big help

      Comment


      • #4
        thats not the code for a message box even


        msgbox "prompt" 'Basic Msgbox code
        Umm...dude?
        Hell just broke loose...

        Comment

        Working...
        X