ie
-Original Message-
From: David Clay [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 4:28 PM
To: Jamie Jackson
Subject: Re: CFSET / UPDATE SQL
I get he correct answer. It, for some reason, is not putting the value in
the UPDATE query.
Dave Clay
Internet Facilitator
Trus Joist,
You want to use IIF
syntax:
At 11:16 PM 3/2/2002 +0200, you wrote:
>I'm using CF 4.5, how can I perform something like this?
>
>
>
>without needing to do:
>
>
>
>
>
>
>
>
>
>
>
>
__
Dedicated Windows 2000 Server
PI
Nick,
> You want to use IIF
I've heard it's resource intensive, true?
- Original Message -
From: "Nick McClure" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
>
> syntax:
>
>
>
> At 11:16 PM 3/2/2002 +0200, you wrote:
> >I'm using CF 4.5, how can I perform something like th
You know, I don't know the answer to that question. I use it often enough,
and I don't notice a problem.
It is the only thing that you can use accomplish the problem.
You could write a function and use cfscript to take care of it for you.
At 11:40 PM 3/2/2002 +0200, you wrote:
>Nick,
>
> > You
CFIF.
Snipe -
- Original Message -
From: "Nick McClure" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, March 02, 2002 3:46 PM
Subject: Re: cfif in cfset
> You know, I don't know the answer to that question. I use it ofte
berFormat(time2)#
Jim
- Original Message -
From: "Aaron Rouse" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, March 02, 2002 3:10 PM
Subject: Re: cfif in cfset
> I know the DE() function which is commonly used with IIF is resourc
; <[EMAIL PROTECTED]>
Sent: Saturday, March 02, 2002 4:47 PM
Subject: Re: cfif in cfset
> You could roll your own, which lets you eliminate the need for DE(). It's
> about 45% faster in my tests using CF5. Without the DE() functions used
in
> the IIf(), the difference is a l
sumtin else. getta rope
"Success is a journey, not a destination!!"
Doug Brown
- Original Message -
From: "Aaron Rouse" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, March 03, 2002 1:52 PM
Subject: Re:
Okay, I'm familier with doing simple math with cfset but how can I find a
percentage with it?
Or is there a better way?
I just need to figure what percentage varible a is of variable b..
-mike
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Set
CF-Talk
> Subject: cfset vs. cfsavecontent
>
> I have a CFC where I'm writing the contents of a config file for a 3rd
> party engine. However, if I use cfsavecontent (my preferred approach),
> the XML string never gets written. But if I use the standard cfset,
> the string is wr
> I have a CFC where I'm writing the contents of a config file
> for a 3rd party engine. However, if I use cfsavecontent (my
> preferred approach), the XML string never gets written.
Why not just use the CFXML tag? That's exactly what it's for, I think.
Dave Watts, CTO, Fig Leaf Software
http:/
On Mon, 19 Jul 2004 17:11:27 -0400, Dave Watts <[EMAIL PROTECTED]> wrote:
> > I have a CFC where I'm writing the contents of a config file
> > for a 3rd party engine. However, if I use cfsavecontent (my
> > preferred approach), the XML string never gets written.
>
> Why not just use the CFXML tag?
On Mon, 19 Jul 2004 14:02:33 -0700, Barney Boisvert
<[EMAIL PROTECTED]> wrote:
> You have output disabled with CFSETTING? If so, you'll need to wrap the
> CFSAVECONTENT in a CFOUTPUT if you want the text to display.
>
> Cheers,
> barneyb
>
Thanks Barney, that was it. Out of curiosity, isn't tha
> Thanks Barney, that was it. Out of curiosity, isn't that a
> bit counter-intuitive? I mean, the whole purpose (in this
> case, at least) is to write the contents to a variable to
> pass back from my CFC. If I'm not writing anything to the
> output stream in cfsavecontent call itself, why do I
Not 100% sure, but my first guess would be an arrant blank line.
encoding="UTF-8" standalone="no"?>
standalone="no"?>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
> I was trying to use that (that was my first attempt), but I
> kept getting a "Document root element is missing" error using
> the code below. If you happen to see anything wrong with the
> below syntax, I'm all eyes, as that's the cleanest way to
> write the code (mind you, I have no control
> On Mon, 19 Jul 2004 14:02:33 -0700, Barney Boisvert
> <[EMAIL PROTECTED]> wrote:
>> You have output disabled with CFSETTING? If so, you'll
>> need to wrap the
>> CFSAVECONTENT in a CFOUTPUT if you want the text to
>> display.
>>
>> Cheers,
>> barneyb
>>
> Thanks Barney, that was it. Out of curi
On Mon, 19 Jul 2004 14:23:16 -0700, Ian Skinner
<[EMAIL PROTECTED]> wrote:
> Not 100% sure, but my first guess would be an arrant blank line.
>
>
>
>
>
> encoding="UTF-8" standalone="no"?>
>
>
>
seen/used with the cfxml tag cared if the root node was on the same
line as the opening cfxml ta
and trim out all the bits that were marked as "to be
ignored".
Cheers,
barneyb
> -Original Message-
> From: Dave Carabetta [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 19, 2004 2:14 PM
> To: CF-Talk
> Subject: Re: cfset vs. cfsavecontent
>
> On Mon,
On Mon, 19 Jul 2004 17:32:35 -0400, Dave Watts <[EMAIL PROTECTED]> wrote:
> > I was trying to use that (that was my first attempt), but I
> > kept getting a "Document root element is missing" error using
> > the code below. If you happen to see anything wrong with the
> > below syntax, I'm all eyes
On Mon, 19 Jul 2004 17:26:07 -0400, S. Isaac Dealey <[EMAIL PROTECTED]> wrote:
> It does that because the features (cfsetting and cfsavecontent) are
> encapsulated from each other... cfsavecontent in particular doesn't do
> anything other than examine what's put into the output buffer and
> capture
Dave Carabetta wrote:
> >
> > When I wrapped a CFSETTING ENABLECFOUTPUTONLY around it, though, I
> got the
> > same error you did.
>
> Interesting. On a hunch after looking through your sample above, I
> switched back to cfxml and simply put cfoutput after the opening cfxml
> and before the closi
w.grida.no
-
| -Original Message-
| From: Stephen Moretti (cfmaster) [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, July 20, 2004 12:30
| To: CF-Talk
| Subject: Re: cfset vs. cfsavecontent
|
| Dave Carabetta wrote:
|
| > >
| > > When I wrapped a CFSETTING ENABLECFOUTPUT
On Tue, 20 Jul 2004 13:18:05 +0200, Hugo Ahlenius
<[EMAIL PROTECTED]> wrote:
> Personally I am never using CFSETTING ENABLECFOUTPUTONLY, instead I am
> using cfsilent (for plain templates) and output="no" for cfc/cffunction.
>
> Since the cfsetting/enabelcfoutputonly is set for the whole request,
> On Tue, 20 Jul 2004 13:18:05 +0200, Hugo Ahlenius
> <[EMAIL PROTECTED]> wrote:
>> Personally I am never using CFSETTING ENABLECFOUTPUTONLY,
>> instead I am
>> using cfsilent (for plain templates) and output="no" for
>> cfc/cffunction.
>>
>> Since the cfsetting/enabelcfoutputonly is set for the
>>
barneyb
> -Original Message-
> From: Dave Carabetta [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 20, 2004 6:58 AM
> To: CF-Talk
> Subject: Re: cfset vs. cfsavecontent
>
> On Tue, 20 Jul 2004 13:18:05 +0200, Hugo Ahlenius
> <[EMAIL PROTECTED]> wrote:
> &
> This may not be possible but...
> Doesn anyone know of a way to get this or something
> similar to work?
>
> value=""#Variable#"">">
>
> #preserveSingleQuotes(strSQL)#
>
No, unfortunately there's no way to store a queryparam in a string --
I'm sure largely because a query that uses cfquery
> This may not be possible but...
>
> Doesn anyone know of a way to get this or something similar
> to work?
>
>
> value=""#Variable#"">">
>
>
> #preserveSingleQuotes(strSQL)#
>
I'm pretty sure that idea, or any variations on it, won't work.
Dave Watts, CTO, Fig Leaf Software
http://www.fi
Chris Kavanagh wrote:
>
> This CFSET is returning the error: "Variable DIFFTYPE is undefined."
>
> --
>
>
>
>
>
>
>
>
>
>
>
> --
>
> :/ Can anybod
Your switch expression is the text "lead_time_type_id" which does not have a
case. If you mean it to be a variable of that name, you have to place pound
sighs around the variable.
Like so:
> Hi List,
>
> This CFSET is returning the error: "Variab
Your variable difftype is not set for some case. I would first make
sure that 1,2,3,4 are the only values for lead_time_type_id
On Tue, 1 Feb 2005 16:39:24 +, Chris Kavanagh <[EMAIL PROTECTED]> wrote:
> Hi List,
>
> This CFSET is returning the error: "Variable D
Thanks everybody, this was the problem exactly:
> Your switch expression is the text "lead_time_type_id" which does not
> have a
> case. If you mean it to be a variable of that name, you have to place
> pound
> sighs around the variable.
> Like so:
>
~~
r cfswitch expression. That
expression always evaluates as the string "lead_time_type_id"
It should be:
One other note... you don't need # symbols when referring to variables
as function arguments, ie:
versus
- Rick
Chris Kavanagh wrote:
> Hi List,
y Troxel [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 18, 2003 12:32 PM
> To: CF-Talk
> Subject: Display CFSET Vars
>
>
> Is there a method, tag, etc. available in CF5 that allows me
> to display all CFSET variables and their values like CF_DUMP
> does? I get everyth
i know this value is a number 0-9
and for the life of me i cannot figger
out why in the heck this won't work?
HELP :)
#form["accountft_type_#session.FullReturn[i].id#"]#
#form["accountat_type_#session.FullReturn[i].id#"]#
>
...t
Here is my application.cfm file:
Should I be locking these cfparam tags? Should I wrap them all in one lock
or should I lock each one individually?
What is the difference between using cfparam tags as I have above and using
cfif with isDefined and cfset to accomplish the same thing? Is
question...
CT> Lets say that I have about 10 variables being set locally on 20 or so cfm
CT> pages..
CT> How much faster is using cfscript over using cfset to set the values of
CT> these local variables?
CT> Clint Tredway
CT>
Developer
Sceiron Internet Services, Inc.
http://www.sceiron.com
- Original Message -
From: "Clint Tredway" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, April 15, 2002 11:41 AM
Subject: cfset vs using cfscript
> I have a question..
a fraction of a second. How big a fraction is debatable.
At 11:41 AM 4/15/02, you wrote:
>I have a question...
>
>Lets say that I have about 10 variables being set locally on 20 or so cfm
>pages..
>
>How much faster is using cfscript over using cfset to set the values of
>
I just optimized some templates which were written in
cf tag syntax by rewriting as cfscript. In my
experience, cfscript can be up to 2-3x as fast. But in
my opinion, the performance isn't worth rewriting
unless you're inside a loop. In my case, I rewrote all
the cfset statements inside
ion...
>
> Lets say that I have about 10 variables being set locally on 20 or so cfm
> pages..
>
> How much faster is using cfscript over using cfset to set the values of
> these local variables?
>
> Clint Tredway
>
>
>
__
it will be faster...how much? well, that would depend on your system. You
could always set up some tests...
-Original Message-
From: Clint Tredway [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 15, 2002 11:42 AM
To: CF-Talk
Subject: cfset vs using cfscript
I have a question...
Lets
owitz" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, April 15, 2002 11:51 AM
Subject: Re: cfset vs using cfscript
> a fraction of a second. How big a fraction is debatable.
>
> At 11:41 AM 4/15/02, you wrote:
> >I have a question...
>
> A fraction of a second on a major application that gets
> millions of hits a day can make or break a system. Remember
> that when you do the big jobs .
While it's a good idea to code for efficiency wherever possible, the above
statement just isn't that accurate. Almost every system I've seen
personally, I never use comments and all my code is one long line for
execution speed.
On Mon, 15 Apr 2002, Dave Watts wrote:
> > A fraction of a second on a major application that gets
> > millions of hits a day can make or break a system. Remember
> > that when you do the big jobs .
>
> Whi
And you are bragging about that?
At 05:05 PM 4/15/2002 -0400, you wrote:
>personally, I never use comments and all my code is one long line for
>execution speed.
>
>On Mon, 15 Apr 2002, Dave Watts wrote:
>
> > > A fraction of a second on a major application that gets
> > > millions of hits a da
> I did an cfif statement
>
> OR
>
Try instead.
-Justin Scott, Lead Developer
Sceiron Internet Services, Inc.
http://www.sceiron.com
__
Signup for the Fusion Authority news alert and keep up with the latest news in
Cold
-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 6:49 AM
Subject: Quick cfif/cfset question
> I am using cfset for an array output (for activepdf) so I set each variable
> like so.
>
>
> The problem is if a student leaves and doesn't have grades for the next
EMAIL PROTECTED]
>>> [EMAIL PROTECTED] 07/11 8:27 AM >>>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> >Can someone please explian when it would be more advantageous to
> >use setVariables instead of cfset?
In general, for static variable names, you should use cfset, or
> The following still allows the CFSET tag to run even though
> the IsDefined variables are empty and hence an error. This is
> from a simple mail form asking for Quantity (qty1) and price
> (uc1) and then calculating a total price (tc1). If Quantity
> and Price are not filled in
Worked perfect! I was misunderstanding the IsDefined function. Thanks
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 15, 2000 12:30 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: IsDefined and CFSET problem
> The following st
I'm trying to set 52 variables to the same value. I'm not familiar with how
loops work, but here's what I've tried and hasn't worked:
Result:
Just in time compilation error
Invalid parser construct found on line 5 at position 15. ColdFusion was
looking at the following text:
#
Invali
e before I cfset the client variable)
So do I need to combine the queries? I'm afraid that the queries are going
to get too big/slow...(
Here are the queries I used. Any help would be great as I've been cursing
this thing all day...
Query 1:
SELECT tbl_StudentGrade.GradesID, tbl_
Ta Da! ;-)
Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]
- Original Message -
From: techmike
To: CF-Talk
Sent: Monday, July 19, 2004 8:33 AM
Subject: cfset and figuring percent
On Jul 19, 2004, at 8:33 AM, techmike wrote:
> Okay, I'm familier with doing simple math with cfset but how can I
> find a
> percentage with it?
>
> Or is there a better way?
>
> I just need to figure what percentage varible a is of variable b..
>
a / b * 100
D
e: Mon, 19 Jul 2004 08:42:43 -0700
Subject: Re: cfset and figuring percentages..
>
>
> Ta Da! ;-)
>
> Bryan Stevenson B.Comm.
> VP & Director of E-Commerce Development
> Electric Edge Systems Group Inc.
> t. 250.920.8830
> e. [EMAIL PROTECTED]
>
> -
round(a/b * 100)
-joe
- Original Message -
From: techmike <[EMAIL PROTECTED]>
Date: Mon, 19 Jul 2004 12:17:19 -0400
Subject: Re: cfset and figuring percentages..
To: CF-Talk <[EMAIL PROTECTED]>
Well, pretty much what I was doing with two lines.. :) Thanks
Now, this bring
.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]
- Original Message -
From: techmike
To: CF-Talk
Sent: Monday, July 19, 2004 9:17 AM
Subject: Re: cfset and figuring percentages..
Well, pretty much w
I unfortunatly don't have the luxury.. lol
Unless there is a good cfm editor for linux, I'm stuck with VI.. :(
-mike
-Original Message-
From: "Bryan Stevenson" <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Date: Mon, 19 Jul 2004 09:32:38 -0700
Without getting into the editor part (that's a whole different
thread), check out http://livedocs.macromedia.com - documentation for
CF is there.
-joe
- Original Message -
From: techmike <[EMAIL PROTECTED]>
Date: Mon, 19 Jul 2004 13:19:22 -0400
Subject: Re: cfset and figuring
Don't let that stop you! Point your browser to the livedocs and read
away.
http://livedocs.macromedia.com/coldfusion/6/
--Ferg
_
From: techmike [mailto:[EMAIL PROTECTED]
Sent: Monday, July 19, 2004 12:19 PM
To: CF-Talk
Subject: Re: cfset and figuring percentages..
I unfortu
Hi,
I know that when you declare a variable inside a method of cfc, you should use
the var keyword in front of it to prevent any conflict with variables outside
of it. That is the case with cfset. What about cfparam? When you declare a
variable with cfparam, do you have to worry about that
You can't use cf tags in an expression. You could use Iif(). But most
people would simply write
> -Original Message-
> From: Tony Weeg [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 10 September 2002 3:08 p.m.
> To: CF-Talk
> Subject: oddity with
: Monday, September 09, 2002 11:16 PM
To: CF-Talk
Subject: RE: oddity with variables and cfset
You can't use cf tags in an expression. You could use Iif(). But most
people would simply write
> -Original Message-
> From: Tony Weeg [mailto:[EMAIL PROTECT
roying the structure(sfrm) in the
session scope
Joe
-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 11:20 PM
To: CF-Talk
Subject: RE: oddity with variables and cfset
yup, thats what i just came up with too :)
just writing the never mi
-
From: Joe Eugene [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 12:11 AM
To: CF-Talk
Subject: RE: oddity with variables and cfset
Tony,
I think i mentioned this earlier
1. Your sessions dont look like they are locked.
2. when you run into a case of
, September 10, 2002 12:21 AM
To: CF-Talk
Subject: RE: oddity with variables and cfset
joe.
this is the full snippet, i think i am doing
the right thing, i set the session var FinalReturnResults
first, to get an array in the session scope, this array
becomes and array of structures shortly after that
hould I wrap them all in one lock or should I lock each
> one individually?
I'd wrap them all in one lock.
> What is the difference between using cfparam tags as I have
> above and using cfif with isDefined and cfset to accomplish
> the same thing?
There's no functional
www.macromedia.com
-
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
- Original Message -
From: "Earl, George" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, March 26, 2002 8:21 AM
Subject: cfparam
them all in one lock
>or should I lock each one individually?
>
>What is the difference between using cfparam tags as I have above and using
>cfif with isDefined and cfset to accomplish the same thing? Is one method a
>better prac
. Are there any exceptions to the
rule?
Sharon
- Original Message -
From: "Michael Dinowitz" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, March 26, 2002 11:35 AM
Subject: Re: cfparam vs. cfif/isDefined/cfset
> 1. You should lock t
enson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, March 26, 2002 4:33 PM
Subject: Re: cfparam vs. cfif/isDefined/cfset
> Definately wrap a lock around those, and I would only run that block if 1
of the vars inside isn't
> defined (i
t;Here is my application.cfm file:
>
>0)#>
>
>
>
>
>
>
>
>
>Should I be locking these cfparam tags? Should I wrap them all in one lock
>or should I lock each one individually?
>
>What is the difference between using cfparam tags as I have above and using
ogrammer
--
[EMAIL PROTECTED]
913-498-0123 ext 284
--
-Original Message-
From: Sharon DiOrio [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 11:10 AM
To: CF-Talk
Subject: Re: cfparam vs. cfif/isDefined/cfset
I tend to set all
-Talk
Subject: Re: cfparam vs. cfif/isDefined/cfset
Yes, they MUST be locked.
These look like variables that don't change - I'd do a CFIF test on one, and
if it doesn't exist then set them all. As long as you always set them all
together, you can use the existence of one to test fo
eclare the structure in the
application or session scope, and only create it once. Just be sure to lock
where needed. And keep in mind that only YOU know the right answer for your
needs.
My two cents worth.
Shawn Grover
-Original Message-
From: Chris Norloff [mailto:[EMAIL PROTECTED]]
Sent:
CF-Talk
>Subject: Re: cfparam vs. cfif/isDefined/cfset
>
>
>Yes, they MUST be locked.
>
>These look like variables that don't change - I'd do a CFIF test on one, and
>if it doesn't exist then set them all. As long as you always set them all
>together, you can u
-Talk
Subject: RE: cfparam vs. cfif/isDefined/cfset
So you don't have to set the variable again and again, with every request.
Chris Norloff
-- Original Message --
from: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
date: Tue, 26 Mar 2002 13:18:40 -
the structure in the
>application or session scope, and only create it once. Just be sure to lock
>where needed. And keep in mind that only YOU know the right answer for your
>needs.
>
>My two cents worth.
>
>Shawn Grover
>
>-Original Message-
>From: Chris Nor
>Sent: Tuesday, March 26, 2002 1:46 PM
>To: CF-Talk
>Subject: RE: cfparam vs. cfif/isDefined/cfset
>
>
>So you don't have to set the variable again and again, with every request.
>
>Chris Norloff
>
>-- Original Message --
>
't
it?...
Shawn Grover
-Original Message-
From: Chris Norloff [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 11:58 AM
To: CF-Talk
Subject: RE: cfparam vs. cfif/isDefined/cfset
For example: we maintain 5 server locations, some secure and some not. Some
of the sit
Hello,
What's the best way to dynamically name variables used in a CFSET tag?
I want them named choice0, choice1, etc up through however many loops are
made:
(which does not work but illustrates what I'm
trying to do.
Th
-
From: Erika Foster [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 08, 2000 12:05 PM
To: [EMAIL PROTECTED]
Subject: Simple CFSET and loop question.
I'm trying to set 52 variables to the same value. I'm not familiar with how
loops work, but here's what I've tried and hasn't
> I'm trying to set 52 variables to the same value. I'm not
> familiar with how
> loops work, but here's what I've tried and hasn't worked:
>
>
>
>
>
>
try
Philip Arnold
ASP Multimedia Limited
T: +44 (0)20 8680 1133
"Websites for the real world"
> I'm trying to set 52 variables to the same value. I'm not
> familiar with how loops work, but here's what I've tried
> and hasn't worked:
>
>
>
>
>
>
>
> Result:
>
> Just in time compilation error
Your CFSET won
> I'm trying to set 52 variables to the same value. I'm not familiar with
how
> loops work, but here's what I've tried and hasn't worked:
>
>
>
>
>
>
Your loop is correct, its your CFSET that is malformed. When you are
creating a varia
: [EMAIL PROTECTED]
Subject: Simple CFSET and loop question.
I'm trying to set 52 variables to the same value. I'm not familiar with how
loops work, but here's what I've tried and hasn't worked:
Result:
Just in time compilation error
Invalid parser construct fo
Thank you!
I took your advice and used option #2 and it works like a charm. With quick
support like that, I may have to convince my boss to send me to DC for
Figleaf CF training!
Thanks,
Erika
: Your CFSET won't work, as written. What you're trying to do is to create
: variables d
setvariable("person#i#","#form.person#")
At 07:30 PM 08/05/00 +0100, you wrote:
> > I'm trying to set 52 variables to the same value. I'm not
> > familiar with how
> > loops work, but here's what I've tried and hasn't worked:
> >
> >
> >
> >
> >
> >
>
>try
>
>Philip Arnold
>ASP Multimed
> I took your advice and used option #2 and it works like a
> charm. With quick support like that, I may have to convince
> my boss to send me to DC for Figleaf CF training!
We look forward to seeing you!
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (2
The problem lies in your CFSET statement between the queries. You are
setting client.gradingPeriod to the first value returned by the previous
query. Thus when you reference the second query's values in the IF
statement they will always be the same. You should not be running two
sep
Hi,
I've a problem with CFSET, i'm trying to have a font color change in one of my statements but it doesn't seem to work. The CFSET is within a CFCATCH and CFTRY.
">
Number of Bedrooms must have a value.">
">
">
My tags in my variabl
that's a whole 'nother discussion :)
the biggest deal is that HTML is going away. There will be no HTML 5.
The current (4.whatever) is the last.
XHTML is the next standard as defined by the W3C.
XHTML itself is nothing more than 'well formed' HTML (so if you wrote
'good HTML', you're in good
.
My practice is to do:
Hi,
>
> I know that when you declare a variable inside a method of cfc, you should
> use the var keyword in front of it to prevent any conflict with variables
> outside of it. That is the case with cfset. What about cfparam? When
> you declare a variable w
set.
> My practice is to do:
>
>
> The question you have to ask yourself is how and why you're using the
> CFPARAM tag.
>
>
> > Hi,
> >
> > I know that when you declare a variable inside a method of cfc, you should
> > use the var keyword in front o
CFARGUMENT can validate the data type being passed in and if it exists (as
well as give a default value). This copies most of the ability of the
CFPARAM tag. On the other hand, the new validation ability of CFPARAM does
not exist in CFARGUMENT (oversight?).
Of course, you can write the same using
On Tue, 8 Mar 2005 16:25:43 -0500, Michael Dinowitz
<[EMAIL PROTECTED]> wrote:
> I've told people in the past to use CFPARAM to validate the structure of
> their data within a CFC method as a fast 'check'.
With CFMX 7 I'd be more inclined to use the isValid() function instead
of - a lot depends o
Which is why I said you can do it with a function. :)
So can you ask someone at MM why the validation attributes were not added to
the CFARGUMENT tag and if they can be?
> On Tue, 8 Mar 2005 16:25:43 -0500, Michael Dinowitz
> <[EMAIL PROTECTED]> wrote:
> > I've told people in the past to use CFPAR
i believe the "from" field has to be an email address
- Original Message -
From: "Philip Arnold" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, April 13, 2003 7:14 AM
Subject: RE: using cfset in the application template
Been awhile since the brain has not overloaded. What have I missed here
to get the value, I don't have sites that cfloop like this often...what
I need to do in each of these is somehow plop the value of the form
variable...in this instance, product1 in the first loop, product2 in the
second loop.
101 - 200 of 271 matches
Mail list logo