[thelist] Classic ASP: Someone else's code
Vlad Alexander (XStandard)
vlad.alexander at xstandard.com
Tue Nov 22 12:18:52 CST 2005
Casey,
This technique of concatenating a variable with an empty string
is sometime used to convert Variant values String. It's equivalent
to doing this:
if trim(CStr(Contact_First_x)) <> "" _
AND trim(CStr(Contact_Last_x)) <> "" then
Regards,
-Vlad
http://xstandard.com
-------- Original Message --------
From: Casey
Date: 11/22/2005 12:47 PM
> What exactly is going on here:
>
> if trim(Contact_First_x) & "" <> "" AND trim(Contact_Last_x) & "" <> "" then
>
> In case it's not clear in the email: "" <> "" which is: double-quote
> double-quote <> double-quote double-quote
>
> I'm not at all understanding the logic of this statement.... anyone?
>
> Casey
>
More information about the thelist
mailing list