Re: getting rid of Evaluate in CF 5.0

2004-08-13 Thread Jim Louis
Peter, I will get rid of those pesky #'s.I learned CF from a book. and I did a lot of this scripting in the first few months of programming. Bryan, This is what I am trying to do. 1. This is for a registration for a conference. (1500+ registrants) 2. This part is for a hotel rooms for this

Re: getting rid of Evaluate in CF 5.0

2004-08-12 Thread Joe Rinehart
cfif variables[rm1Day a1] eq 0 and variables[rm2day a1]... ...should start to get ya there. -joe - Original Message - From: Jim Louis [EMAIL PROTECTED] Date: Thu, 12 Aug 2004 12:46:48 -0400 Subject: getting rid of Evaluate in CF 5.0 To: CF-Talk [EMAIL PROTECTED] I have a complex page

Re: getting rid of Evaluate in CF 5.0

2004-08-12 Thread Jim Louis
Thank you Jim cfif variables[rm1Day a1] eq 0 and variables[rm2day a1]... ...should start to get ya there. -joe - Original Message - From: Jim Louis [EMAIL PROTECTED] Date: Thu, 12 Aug 2004 12:46:48 -0400 Subject: getting rid of Evaluate in CF 5.0 To: CF-Talk [EMAIL PROTECTED] I

RE: getting rid of Evaluate in CF 5.0

2004-08-12 Thread Pascal Peters
NOT in cf5 it won't (variables became a struct in cf6). But you could put your vars in a structure and then use that syntax. Pascal -Original Message- From: Joe Rinehart [mailto:[EMAIL PROTECTED] Sent: 12 August 2004 18:56 To: CF-Talk Subject: Re: getting rid of Evaluate in CF 5.0

RE: getting rid of Evaluate in CF 5.0

2004-08-12 Thread Bryan Love
reconsider the way you create those variables.How are RM1DAY and the other variables getting created?A struct or an array would probably work very nicely to store those variable values differently and speed up your code. Also, it's generally a very bad idea to put a query inside a loop.Of all

Re: getting rid of Evaluate in CF 5.0

2004-08-12 Thread Peter Farrell
I'm being anal about something here, but you should be able to remove the pound signs (#) in this statement and it should continue to work correctly: CFIF Query.DATE EQ #Query2.DATE1# To: CFIF Query.DATE EQ Query2.DATE1 Sorry, I'm so weird about using pounds - read this article by Ben Forta for

RE: Getting rid of evaluate

2003-03-27 Thread Thane Sherrington
At 09:14 AM 03/26/03 -0600, Mark A. Kruger - CFG wrote: Thane, Make your fields part of a structure... Thanks for the code, I'll try that. Of course depending on what you are trying to do there are probably easier ways to accomplish it. Your data structure seems unconventional, but I'm only

RE: Getting rid of evaluate

2003-03-26 Thread Mark A. Kruger - CFG
Thane, Make your fields part of a structure... cfset a = structnew() cfset a.Field1 = regNumber,10,Registration Number, text,, . etc. Then, in your loop code, Cfset i1 = 1 cfset i2 = 2 cfloop collection=#a# item=item cfloop List=#a[item]# index=listmember

RE: Getting rid of evaluate

2003-03-26 Thread Dave Watts
Make your fields part of a structure... Note that in CFMX, it isn't necessary to do this, since variable scopes are exposed as structures. I'm pretty sure that they all are; I know for certain that the Variables scope is. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202)