Hi experts.
This is a very elementary question about VBscript.
When I'm running this in Debug mode, I want to display the value of the sMonthName variable.
Dim curDate As Date
Dim sMonthName As String
Dim iMonth As Integer
curDate = Now
sYear = DatePart(DateInterval.Year, curDate)
iMonth = DatePart(DateInterval.Month, curDate)
sMonthName = CStr(MonthName(iMonth))
**Print(sMonthName)** This does not work.
How can I display sMonthName - just when I'm debugging the scropt?
Thanks, John
This is a very elementary question about VBscript.
When I'm running this in Debug mode, I want to display the value of the sMonthName variable.
Dim curDate As Date
Dim sMonthName As String
Dim iMonth As Integer
curDate = Now
sYear = DatePart(DateInterval.Year, curDate)
iMonth = DatePart(DateInterval.Month, curDate)
sMonthName = CStr(MonthName(iMonth))
**Print(sMonthName)** This does not work.
How can I display sMonthName - just when I'm debugging the scropt?
Thanks, John