Yup...wasn't thinking. Well, how about:

<%
   If x <> "" Then
     'do something
   Else
     'x = ""
   End If
%>

-----Original Message-----
From: Douglas Brown [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 5:07 PM
To: CF-Talk
Subject: Re: VB


That only sets the value to "" if the parameter does not exist. If it does
exist, then it is ignored and uses the current value




Douglas Brown
Email: [EMAIL PROTECTED]
----- Original Message -----
From: "Tony Carcieri" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 1:55 PM
Subject: RE: VB


> Hmm, maybe I am having a brainfart.
>
> If I do:
> <cfparam name="foo" default="">
>
> doesn't that set the value to "" ? If so, then doing what I suggested in
VB
> should work the same. Again, my brain ain't working today.
>
> HTH,
> T
>
> -----Original Message-----
> From: Benoit Martin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 09, 2002 4:48 PM
> To: CF-Talk
> Subject: RE: VB
>
>
> Unfortunately I don't know the answer but I don't think that what you
> proposed would work. This will initialize the var to "" no matter what. In
> my understanding Scott is looking for code that would declare the var only
> if it's not already defined
>
> Ben
>
> -----Original Message-----
> From: Tony Carcieri [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 09, 2002 10:24 AM
> To: CF-Talk
> Subject: RE: VB
>
>
> Dim only declares the var..
>
> Try this:
> Dim x
> x = ""
>
>
> -----Original Message-----
> From: Robert Everland [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 09, 2002 4:17 PM
> To: CF-Talk
> Subject: RE: VB
>
>
> Isn't it DIM
>
> Robert Everland III
> Web Developer Extraordinaire
> Dixon Ticonderoga Company
> http://www.dixonusa.com
>
> -----Original Message-----
> From: Scott Mulholland [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 09, 2002 4:15 PM
> To: CF-Talk
> Subject: OT: VB
>
>
> Anyone know if there is an equivalent of what cfparam in VB.
> I need to set a default for a variable in case it does not exist.
>
> Thanks,
> Scott
>
>
>
>
>
>

______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to