...

View Full Version : vbs string problem



velious
02-20-2004, 08:14 PM
' 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

A1ien51
02-20-2004, 08:24 PM
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....."

velious
02-20-2004, 09:09 PM
Thanks A1ien51 that was a big help :)

Mitch
02-21-2004, 03:42 PM
thats not the code for a message box even :rolleyes:


msgbox "prompt" 'Basic Msgbox code



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum