RE: CFSET / UPDATE SQL

2001-06-01 Thread Jamie Jackson
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,

Re: cfif in cfset

2002-03-02 Thread Nick McClure
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

Re: cfif in cfset

2002-03-02 Thread Jason Davis
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

Re: cfif in cfset

2002-03-02 Thread Nick McClure
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

Re: cfif in cfset

2002-03-02 Thread Aaron Rouse
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

Re: cfif in cfset

2002-03-02 Thread Jim McAtee
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

Re: cfif in cfset

2002-03-03 Thread Aaron Rouse
; <[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

Re: cfif in cfset

2002-03-03 Thread Douglas Brown
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:

cfset and figuring percentages..

2004-07-19 Thread techmike
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

RE: cfset vs. cfsavecontent

2004-07-19 Thread Barney Boisvert
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

RE: cfset vs. cfsavecontent

2004-07-19 Thread Dave Watts
> 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:/

Re: cfset vs. cfsavecontent

2004-07-19 Thread Dave Carabetta
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?

Re: cfset vs. cfsavecontent

2004-07-19 Thread Dave Carabetta
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

RE: cfset vs. cfsavecontent

2004-07-19 Thread Dave Watts
> 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

RE: cfset vs. cfsavecontent

2004-07-19 Thread Ian Skinner
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]

RE: cfset vs. cfsavecontent

2004-07-19 Thread Dave Watts
> 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

Re: cfset vs. cfsavecontent

2004-07-19 Thread S . Isaac Dealey
> 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

Re: cfset vs. cfsavecontent

2004-07-19 Thread Dave Carabetta
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

RE: cfset vs. cfsavecontent

2004-07-19 Thread Barney Boisvert
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,

Re: cfset vs. cfsavecontent

2004-07-19 Thread Dave Carabetta
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

Re: cfset vs. cfsavecontent

2004-07-19 Thread Dave Carabetta
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

Re: cfset vs. cfsavecontent

2004-07-20 Thread Stephen Moretti (cfmaster)
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

RE: cfset vs. cfsavecontent

2004-07-20 Thread Hugo Ahlenius
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

Re: cfset vs. cfsavecontent

2004-07-20 Thread Dave Carabetta
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,

Re: cfset vs. cfsavecontent

2004-07-20 Thread S . Isaac Dealey
> 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 >>

RE: cfset vs. cfsavecontent

2004-07-20 Thread Barney Boisvert
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: > &

Re: CFQUERYPARAM in CFSET

2004-08-31 Thread S . Isaac Dealey
> 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

RE: CFQUERYPARAM in CFSET

2004-08-31 Thread Dave Watts
> 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

Re: My CFSET error

2005-02-01 Thread Jochem van Dieten
Chris Kavanagh wrote: > > This CFSET is returning the error: "Variable DIFFTYPE is undefined." > > -- > > > > > > > > > > > > -- > > :/ Can anybod

RE: My CFSET error

2005-02-01 Thread Michael Dinowitz
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

Re: My CFSET error

2005-02-01 Thread Qasim Rasheed
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

SOLVED: My CFSET error

2005-02-01 Thread Chris Kavanagh
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: > ~~

Re: My CFSET error

2005-02-01 Thread Rick Root
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,

RE: Display CFSET Vars

2003-08-18 Thread Raymond Camden
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

oddity with variables and cfset

2002-09-09 Thread Tony Weeg
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

cfparam vs. cfif/isDefined/cfset

2002-03-26 Thread Earl, George
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

Re: cfset vs using cfscript

2002-04-15 Thread Critz
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>

Re: cfset vs using cfscript

2002-04-15 Thread Justin Scott
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..

Re: cfset vs using cfscript

2002-04-15 Thread Michael Dinowitz
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 >

Re: cfset vs using cfscript

2002-04-15 Thread cf refactoring
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

Re: cfset vs using cfscript

2002-04-15 Thread Alex
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 > > > __

RE: cfset vs using cfscript

2002-04-15 Thread Craig Thomas
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

Re: cfset vs using cfscript

2002-04-15 Thread Justin Scott
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... >

RE: cfset vs using cfscript

2002-04-15 Thread Dave Watts
> 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

RE: cfset vs using cfscript

2002-04-15 Thread Alex
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

RE: cfset vs using cfscript

2002-04-15 Thread Jeffry Houser
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

Re: Quick cfif/cfset question

2002-04-16 Thread Justin Scott
> 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

Re: Quick cfif/cfset question

2002-04-16 Thread Douglas Brown
-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

Re: RE: cfset vs setVariables

2000-07-11 Thread Gregory Harris
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

RE: IsDefined and CFSET problem

2000-07-15 Thread Dave Watts
> 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

RE: IsDefined and CFSET problem

2000-07-15 Thread Jim Watkins
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

Simple CFSET and loop question.

2000-05-08 Thread Erika Foster
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

query and cfif and cfset

2001-07-05 Thread Janine Jakim
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_

Re: cfset and figuring percentages..

2004-07-19 Thread Bryan Stevenson
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

Re: cfset and figuring percentages..

2004-07-19 Thread Dick Applebaum
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

Re: cfset and figuring percentages..

2004-07-19 Thread techmike
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] > >   -

Re: cfset and figuring percentages..

2004-07-19 Thread Joe Rinehart
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

Re: cfset and figuring percentages..

2004-07-19 Thread Bryan Stevenson
.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

Re: cfset and figuring percentages..

2004-07-19 Thread techmike
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

Re: cfset and figuring percentages..

2004-07-19 Thread Joe Rinehart
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

RE: cfset and figuring percentages..

2004-07-19 Thread Ken Ferguson
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

cfset or cfparam in cfc?

2005-03-08 Thread Johnny Le
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

RE: oddity with variables and cfset

2002-09-09 Thread Matthew Walker
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

RE: oddity with variables and cfset

2002-09-09 Thread Tony Weeg
: 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

RE: oddity with variables and cfset

2002-09-09 Thread Joe Eugene
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

RE: oddity with variables and cfset

2002-09-09 Thread Tony Weeg
- 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

RE: oddity with variables and cfset

2002-09-09 Thread Joe Eugene
, 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

RE: cfparam vs. cfif/isDefined/cfset

2002-03-26 Thread Dave Watts
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

Re: cfparam vs. cfif/isDefined/cfset

2002-03-26 Thread Bryan Stevenson
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

Re: cfparam vs. cfif/isDefined/cfset

2002-03-26 Thread Michael Dinowitz
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

Re: cfparam vs. cfif/isDefined/cfset

2002-03-26 Thread Sharon DiOrio
. 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

Re: cfparam vs. cfif/isDefined/cfset

2002-03-26 Thread Tomo Smith
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

Re: cfparam vs. cfif/isDefined/cfset

2002-03-26 Thread Chris Norloff
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

RE: cfparam vs. cfif/isDefined/cfset

2002-03-26 Thread Justin Hansen
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

RE: cfparam vs. cfif/isDefined/cfset

2002-03-26 Thread Tony_Petruzzi
-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

RE: cfparam vs. cfif/isDefined/cfset

2002-03-26 Thread Shawn Grover
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:

RE: cfparam vs. cfif/isDefined/cfset

2002-03-26 Thread Chris Norloff
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

RE: cfparam vs. cfif/isDefined/cfset

2002-03-26 Thread Tony_Petruzzi
-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 -

RE: cfparam vs. cfif/isDefined/cfset

2002-03-26 Thread Chris Norloff
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

RE: cfparam vs. cfif/isDefined/cfset

2002-03-26 Thread Chris Norloff
>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 -- >

RE: cfparam vs. cfif/isDefined/cfset

2002-03-26 Thread Shawn Grover
'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

Dynamic Variable Names in a CFSET

2000-11-02 Thread David Hannum
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

RE: Simple CFSET and loop question.

2000-05-08 Thread Reuben Poon
- 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

RE: Simple CFSET and loop question.

2000-05-08 Thread Philip Arnold - ASP
> 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"

RE: Simple CFSET and loop question.

2000-05-08 Thread Dave Watts
> 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

Re: Simple CFSET and loop question.

2000-05-08 Thread Seth Petry-Johnson
> 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

RE: Simple CFSET and loop question.

2000-05-08 Thread Robert Everland
: [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

Re: Simple CFSET and loop question.

2000-05-08 Thread Erika Foster
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

RE: Simple CFSET and loop question.

2000-05-08 Thread Brook Davies
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

RE: Simple CFSET and loop question.

2000-05-08 Thread Dave Watts
> 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

RE: query and cfif and cfset

2001-07-05 Thread Bryan Love
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

basic CFSET, CFTRY and CFCATCH probs.

2004-02-23 Thread Stuart Kidd
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

Slightly OT: XHTML (was Re: cfset ?)

2005-02-03 Thread Charlie Griefer
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

RE: cfset or cfparam in cfc?

2005-03-08 Thread Michael Dinowitz
. 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

Re: cfset or cfparam in cfc?

2005-03-08 Thread Paul Kenney
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

RE: cfset or cfparam in cfc?

2005-03-08 Thread Michael Dinowitz
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

Re: cfset or cfparam in cfc?

2005-03-08 Thread Sean Corfield
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

RE: cfset or cfparam in cfc?

2005-03-08 Thread Michael Dinowitz
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

Re: using cfset in the application template

2003-06-03 Thread Dave Lyons
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

One Last Duh: CFSET getting variable value

2002-07-31 Thread Eric Hoffman
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.

<    1   2   3   >