Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-20-2004, 07:14 PM   PM User | #1
velious
Regular Coder

 
Join Date: Jun 2003
Location: California
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
velious is an unknown quantity at this point
Question 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
velious is offline   Reply With Quote
Old 02-20-2004, 07:24 PM   PM User | #2
A1ien51
Senior Coder

 
A1ien51's Avatar
 
Join Date: Jun 2002
Location: Between DC and Baltimore In a Cave
Posts: 2,717
Thanks: 1
Thanked 94 Times in 88 Posts
A1ien51 will become famous soon enough
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]
A1ien51 is offline   Reply With Quote
Old 02-20-2004, 08:09 PM   PM User | #3
velious
Regular Coder

 
Join Date: Jun 2003
Location: California
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
velious is an unknown quantity at this point
Thanks A1ien51 that was a big help
velious is offline   Reply With Quote
Old 02-21-2004, 02:42 PM   PM User | #4
Mitch
New Coder

 
Join Date: Feb 2004
Location: Virginia
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Mitch is an unknown quantity at this point
thats not the code for a message box even


msgbox "prompt" 'Basic Msgbox code
__________________
Umm...dude?
Hell just broke loose...
Mitch is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:55 AM.


Advertisement
Log in to turn off these ads.