Thread: vbscript help
View Single Post
Old 2008-11-11, 14:30   #8
IronBits
I ♥ BOINC!
 
IronBits's Avatar
 
Oct 2002
Glendale, AZ. (USA)

3×7×53 Posts
Default

Schweet!
Excellent suggestions.
I had one problem, took me a bit to figure it out, but here is the code change to your code change suggestion.

If MyAMPM = "PM" and MyHH <> "12" Then MyHH = MyHH+12 End If

If I used your suggestion of
If MyAMPM = "PM" Then MyHH = Str(Val(MyHH)+12) End If

I got "val is undefined" ...

Seems they left the keyword Val out of Visual Basic Scripting :(
http://www.htmlgoodies.com/beyond/as...le.php/3458631

As soon as I finish up the output for the csv file, I'll repost my code for final approval
IronBits is offline   Reply With Quote