Steven Burn wrote:
> IsNull()
> IsEmpty()
> Len()
Since he is dealing with dates, I would add IsDate() to this list.
>
> ASP isn't like VB,
You mean "vbscript isn't like VB"
> so most of the time (depending on what you are
> doing of course), you can switch datatype checks while you go ...
>
I think you meany to say: in vbscript, all variables are Variants, so their
datatypes are not predefined, and vbscript does implicit conversions
depending on the use being made of the data contained in the variable. For
example, if a method expects a string argument, vbscript will implicitly
convert the value being supplied to the method to a string (if possible).
E.G:
myDate = #2005/10/24# 'definitely contains a date
Response.Write myDate
Response.Write expects a string argument, so vbscript converts the date to a
string
>> Im having trouble in storing blank or space value on a variable wich
>> data type is Date/Time, if i make a statement like this
>>
>> Field Data Type
>> CPARCAVEDate Date/Time
>>
>> strCPARCAVEDate = rstFEVV.fields("CPARCAVEDate").value
>>
>> if strCPARCAVEDate = "" then
>> counter = counter + 1
>> end if
>>
Steven's advice will work for you. I was just adding some additional
information.
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"