http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html
/coldfusiontoaspnet.asp
I'd try the Nothing but I'm not sure. They check for
[cfif isefined('x')]
and say its equal is
[If Not x Is nothing]
But... apparently x is a little more complex than a simple string in their
example since they then check for x.property
What about this...
If IsNull("x")
Isn't that the equivalent to IsDBNull but for simple variables?
-----Original Message-----
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 19, 2006 1:08 PM
To: CF-Talk
Subject: RE: equivalent of isDefined in ASP?
You might be right. Seems that I used to use it for query objects and then
at the end set the object to Nothing.
-----Original Message-----
From: Dawson, Michael [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 19, 2006 11:09 AM
To: CF-Talk
Subject: RE: equivalent of isDefined in ASP?
Doesn't that work only for objects?
-----Original Message-----
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 19, 2006 8:49 AM
To: CF-Talk
Subject: RE: equivalent of isDefined in ASP?
It's been a while but I believe that's it (for VB)...
If myvar Is Nothing Then
Do something
End If
-----Original Message-----
From: Deanna Schneider [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 19, 2006 9:30 AM
To: CF-Talk
Subject: Re: equivalent of isDefined in ASP?
Isn't it this:
if (myObject Is Nothing)
On 10/18/06, Ray Champagne <[EMAIL PROTECTED]> wrote:
> Anybody got an idea? Google isn't helping me out right now. (VB)
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257416
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4