VarType or TypeName

Results 1 to 2 of 2

Thread: VarType or TypeName

  1. #1
    Join Date
    Dec 1969

    Default VarType or TypeName

    How do I write a VBScript statement using either VarType or TypeName that is equivalent to the IsDate function?

  2. #2
    Join Date
    Dec 1969

    Default RE: VarType or TypeName

    Ha ha, you&#039;re really not trying are you!<BR><BR>vartype of a date object is 7 .. you&#039;ll get that if you run<BR>&#060;%= vartype(#9/16/2002#) %&#062; for instance<BR><BR>believe it or not, typename for a Date type is .. Date<BR><BR>Simple If statement will then be a substitute for isDate<BR><BR>If vartype(mydatevar) = 7 Then

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts