CdnGal
01-13-2003, 12:21 AM
HI, all (newbie here)
Can someone please tell me why I get the error "invalid character, line 13, col 5..., (which is the line below that says d=dat etc), col 5 points to just before the d.....I've tried changing the "d" to other letters/name in case the "d" is used for something else in vb...but it still gives me the same error.
Here's part of the code from the asp page:
dim sSQL,oRST
dim oCN
oCN = OpenConnection()
Function medDate(dat)
dim mths
mths=Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
dim d
d=dat? new Date(dat) : new Date()
return (mths[d.getMonth()] & " " & d.getDate() & ", " & d.getFullYear())
End Function
Thanks!
Can someone please tell me why I get the error "invalid character, line 13, col 5..., (which is the line below that says d=dat etc), col 5 points to just before the d.....I've tried changing the "d" to other letters/name in case the "d" is used for something else in vb...but it still gives me the same error.
Here's part of the code from the asp page:
dim sSQL,oRST
dim oCN
oCN = OpenConnection()
Function medDate(dat)
dim mths
mths=Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
dim d
d=dat? new Date(dat) : new Date()
return (mths[d.getMonth()] & " " & d.getDate() & ", " & d.getFullYear())
End Function
Thanks!