Am i missing something obvious.
cfoutput
cfset t = 1
cfloop condition=t LTE 10
t=#t#BR
cfset t++
cfif t GT 10
cfbreak/
/cfif
/cfloop
cfset w = 1
cfloop condition=1 eq 1
w=#w#BR
cfset w++
cfif w GT 10
cfbreak/
/cfif
/cfloop
cfloop from=1 to=10 index=y
y=#y#BR
cfset y++
/cfloop
cfscript
Looks like your incrementing X in the for statement and in the body of the
loop
On Thu, Apr 24, 2014 at 8:55 AM, Byron Mann byronos...@gmail.com wrote:
Am i missing something obvious.
cfoutput
cfset t = 1
cfloop condition=t LTE 10
t=#t#BR
cfset t++
cfif t GT 10
cfbreak/
/cfif
Yes, that last one with x is what I actually want.
I'm just surprise the first few versions do not act in the same manner.
Byron Mann
Lead Engineer Architect
HostMySite.com
On Thu, Apr 24, 2014 at 12:25 PM, Blake wdavi...@gmail.com wrote:
Looks like your incrementing X in the for
You are only incrementing the earlier loops by one.
Why not do something like
cfset y = y+2
On Thu, Apr 24, 2014 at 9:28 AM, Byron Mann byronos...@gmail.com wrote:
Yes, that last one with x is what I actually want.
I'm just surprise the first few versions do not act in the same manner.
cfloop from=1 to=10 index=x
#x#-
cfset x = x + 2
/cfloop
1- 2- 3- 4- 5- 6- 7- 8- 9- 10-
I would use step in cfloop, however, the increment can be variable from
iteration to iteration.
Byron Mann
Lead Engineer Architect
HostMySite.com
On Thu, Apr 24, 2014 at 12:32 PM, Blake
cfset t = 1
cfloop condition=t LTE 10
t=#t#BR
cfset t=t+2
cfif t GT 10
cfbreak/
/cfif
/cfloop
t=1
t=3
t=5
t=7
t=9
On Thu, Apr 24, 2014 at 9:39 AM, Byron Mann byronos...@gmail.com wrote:
cfloop from=1 to=10 index=x
#x#-
cfset x = x + 2
/cfloop
1- 2- 3- 4- 5- 6-
Am i missing something obvious.
[...]
Only the last version is working as I would expect. I ran into this
attempting to increment an index inside cfloop, so I could skip a few
records in an array.
It's difficult to say how your expectations are off, given you don't *seem* to
tell us what said
maybe this?
cfloop from=1 to=10 index=y
cfif NOT (y mod 2)
cfcontinue
/cfif
y=#y#BR
/cfloop
On Thu, Apr 24, 2014 at 9:49 AM, Adam Cameron dacc...@gmail.com wrote:
Am i missing something obvious.
[...]
Only the last version is working as I would expect. I ran into
Am i missing something obvious.
cfloop from=1 to=10 index=y
y=#y#BR
cfset y++
/cfloop
With this one, yes. With this sort of loop, CF maintains the counter
internally, and just exposes its current value each iteration. So you can do
what you like to the value inside the loop body, CF will
They are all working the way they are intended, but I will look at one in
particular as it can catch a lot of people out.
cfloop from=1 to=10 index=y
y=#y#BR
cfset y++
/cfloop
When ColdFusion does any looping like this, the y is reset to the actual
loop valuem hence making the manual increment
The problem with cfscript is that it is more ESMAC compliant, which means
you can increment it when being used in a for loop as you have shown in
your last example.
Well yes and no. the CFScript construct:
for(i=1; i=10;i++){
// stuff
}
is not analogous to:
cfloop index=i from=1
Yes Adam, you're right. I looked at the code quickly and saw the one
increment and assumed *sigh* that it was using the for loop in the first
example. Well in that case it is working as intended then.
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+:
OK, me==dah, the first 2 examples I just need to increment by 2 (or any
other factor) other than 1. This is what happens without enough coffee.
My actual code in use was like the 3rd example, but it is nested inside
other loops. I had to break the inner loop in differing steps/increments.
I have just installed CF10 on my development machine. I have been happily
running CF9 for several years and decided it was time to move on. The actual
install seemed to go smoothly but at the end when it tells you it is going to
the configuration wizard nothing happens. It simply serves up a
Are you trying to run ColdFusion 9 and ColdFusion 10 on the same IP and
Port?
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/113032480415921517411
On Fri, Apr 25, 2014 at 5:16 AM, John Pullam jpul...@mcleansystems.comwrote:
I have just
I'm not trying to run CF9 at all. I never ran across an option to set the port
for CF10. Did I miss something?
~|
Order the Adobe Coldfusion Anthology now!
as you have said CF9 pages continue to run fine, this means that cf9 is
still running. CF10 installs alongside it.
I would suggest you shut down the CF9 services to make sure you are in fact
using CF10.
You also may need to use the internal web server to access the cfadmin
instead if the one you
*sigh*
When you install ColdFusion connectors it needs to connect to a configured
website, this website in IIS for example is setup with an IP and Port. If
ColdFusion 9 is already installed, then it will server up the ColdFusion 9
Administration.
If you try to the install ColdFusion onto the
CF9 refuses to stop. Even after a reboot and the first thing I did was go into
services and clicked on stop. I noticed that each version has a tool in the
program folder called web server configuration tool and when I ran it for each
version (thinking I might use it to alter what port it was
Well yes it can, but like I stated you need to remove ColdFusion from being
setup for all sites first and then slect the one or two sites you wish it
to work on. Then you can install ColdFusion 10 and instead of selecting all
during installation you specify there which website you wish to connect
I appreciate the help. I am primarily a CF application guy but I usually have
enough Windows skills to keep things working OK on my development desktop
machine. (I've done CF6 onwards and kept it going on my desktop.) I am unclear
on connectors and don't believe that I saw or answered any
if the service wont stop, then you can of course just kill the process from
task manager and then disable the service.
On Thu, Apr 24, 2014 at 9:10 PM, John Pullam jpul...@mcleansystems.comwrote:
CF9 refuses to stop. Even after a reboot and the first thing I did was go
into services and
I appreciate the help. I am primarily a CF application guy but I usually have
enough Windows skills to keep things
working OK on my development desktop machine. (I've done CF6 onwards and kept
it going on my desktop.) I am
unclear on connectors and don't believe that I saw or answered any
Sorry to post a second install problem ... I'm feeling like a real dummy today.
I just cleaned out my CF9 development install that had run well for several
years and did a clean CF10 install. I'm running windows 64 bit and did a 64 bit
CF install. It looked good and asked all the expected
what about the built in web server (on port 8500) is that working ?
if you didn't choose to install that, then read this to enable it.
http://www.carehart.org/blog/client/index.cfm/2012/7/23/The-builtin-web-server-in-ColdFusion-10-enabling-it-configuring-it-reconsidering-it
this will at least
I just cleaned out my CF9 development install that had run well for several
years and did a clean CF10
install. I'm running windows 64 bit and did a 64 bit CF install. It looked
good and asked all the expected questions.
But when it attempted to call up the configuration wizard at URL
Yes, I was able to get CF to issue an error message after enabling that server
and inserting the port in the URL. So I guess that means it is an IIS issue.
Can you suggest a next step...
~|
Order the Adobe Coldfusion
No I didn't. How do I uninstall a connector? (Given that I don't really
understand what a connector is.)
I read a post of yours elsewhere also suggesting using the bultin web server.
My rationale for staying with IIS is that I want to test on a system very
similar to what it will be deployed
No I didn't. How do I uninstall a connector? (Given that I don't really
understand what a connector is.)
It's the thing that ... connects ... your web server to CF. When a
request is received, your web server sends it to the connector, which
sends it to CF.
I read a post of yours elsewhere
run the web config tool, remove all connectors, and then add them again,
will then add the CF10 connectors.
On Thu, Apr 24, 2014 at 10:33 PM, John Pullam jpul...@mcleansystems.comwrote:
No I didn't. How do I uninstall a connector? (Given that I don't really
understand what a connector is.)
the connector is basically the DLL file that the handler points to for
processing cfml pages.
If you are still using MSACCESS, then you really need to stop that now, it
is no longer supported on 64bit servers without workarounds and there are
so many better/free alternatives.
On Thu, Apr 24,
Dave, you indicated that I should have uninstalled the CF9 connectors before
starting the install. Given that I didn't and that I no longer have a CF9
system, how would I go about removing them? Do I now need to re-install CF9,
remove the connector and then uninstall it? I hope not. I can't
The Web Server Configuration tool can do this for you.
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/113032480415921517411
On Fri, Apr 25, 2014 at 10:32 AM, John Pullam jpul...@mcleansystems.comwrote:
Dave, you indicated that I should have
you just need to use the cf10 web config tool as per earlier email to
remove connectors and re-add
On Fri, Apr 25, 2014 at 1:32 AM, John Pullam jpul...@mcleansystems.comwrote:
Dave, you indicated that I should have uninstalled the CF9 connectors
before starting the install. Given that I
34 matches
Mail list logo