try these tools, you may have more luck
http://carehart.org/cf411/#excel
On Fri, Nov 15, 2013 at 2:35 PM, Stephens, Larry V steph...@iu.edu wrote:
I've stayed away from cfscript but now I'm looking at it in conjunction
with writing Excel spreadsheets.
I looked at
On Fri, Nov 15, 2013 at 9:35 AM, Stephens, Larry V steph...@iu.edu wrote:
cfscript
for ( x=1; x=GetB.Recordcount; x=x+1) {
if GetB.bcode[x] NEQ xcampus {
This throws an invalid construct error:
ColdFusion was looking at the following text:
GetB.bcode
? What am
cfscript
for ( x=1; x=GetB.Recordcount; x=x+1) {
if GetB.bcode[x] NEQ xcampus {
This throws an invalid construct error:
ColdFusion was looking at the following text:
GetB.bcode
? What am I missing?
if ( GetB.bcode[x] != xcampus )
{
// do something
}
And
Thanks. See below
-Original Message-
From: Matt Quackenbush [mailto:quackfu...@gmail.com]
Sent: Friday, November 15, 2013 9:45 AM
To: cf-talk
Subject: Re: cfscript assistance
On Fri, Nov 15, 2013 at 9:35 AM, Stephens, Larry V steph...@iu.edu wrote:
cfscript
for ( x=1
Ah - I missed part of Matt's response and Dave said the same thing. It was the
() that was throwing the error. Should have seen that...
Thanks.
-Original Message-
From: Matt Quackenbush [mailto:quackfu...@gmail.com]
if GetB.bcode[x] NEQ xcampus {
if ( GetB.bcode[x]
You get same error without the setName aspect:
cfscript
local.qryObj = new Query(datasource=PNGOasis);
local.qryObj.setSQL(
INSERT INTO PNGOasisExt.dbo.Test(testValue) VALUES ('test value')
);
local.qryObj.execute();
/cfscript
Error:
11:01:30.030 - Expression Exception - in
Weird. Not that it matters, but try this mod:
local.qryObj = new com.adobe.coldfusion.query();
local.qryObj.setDatasource(PNGOasis);
then continue
On Tue, Oct 15, 2013 at 10:02 AM, Kumar Shah shahku...@gmail.com wrote:
You get same error without the setName aspect:
cfscript
I see you are on CF9. Do you have a copy of CF10? If so, try copying over
the CFCs. This may be something that was fixed.
On Tue, Oct 15, 2013 at 10:13 AM, Raymond Camden raymondcam...@gmail.comwrote:
Weird. Not that it matters, but try this mod:
local.qryObj = new
Two things.
1) Don't forget that the code behind the script based CFCs is not
encrypted. You can look at base.cfc.
2) The issue seems to be this line:
cfset tagResult.setResult(StructFind(variables,tagAttributes['name']))
But - it is wrapped in a try/catch, so you shouldn't be seeing it. If
I don't use setName() in my script based queries and it works. If I need a
result back from the query, then I use a different variable name
(v.perviousPayPeriod) from the one I use to construct and execute the query
(v.payPerQ). Here's an example of some working code:
v.payPerQ = new Query();
Any particular reason you don't use the cfzip tag from ColdFusion 8+?
Sorry, that's probably not helpful, but hey sometimes people don't read the
docs. If you're on Adobe software, I think nothing before CF8 is even
supported anymore.
nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz]
On 6/25/2012 1:07 PM, Nathan Strutz wrote:
Any particular reason you don't use the cfzip tag from ColdFusion 8+?
project CFCs are all in cfscript.
Sorry, that's probably not helpful, but hey sometimes people don't read the
docs. If you're on Adobe software, I think nothing before CF8 is
Paul, Nathan is asking is there any reason you are not using ColdFusion 8
and its tag/script based support for zip, instead of a 3rd party library.
--
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543
On Mon, Jun 25, 2012 at 6:13
There is no script support for cfzip. He is using a script based CFC.
On Mon, Jun 25, 2012 at 4:08 AM, Andrew Scott andr...@andyscott.id.au wrote:
Paul, Nathan is asking is there any reason you are not using ColdFusion 8
and its tag/script based support for zip, instead of a 3rd party
Unless you're on Railo, of course. :-)
http://wiki.getrailo.org/wiki/TAG:CFZIP
On Mon, Jun 25, 2012 at 9:48 AM, Raymond Camden raymondcam...@gmail.comwrote:
There is no script support for cfzip. He is using a script based CFC.
On Mon, Jun 25, 2012 at 4:08 AM, Andrew Scott
Ok, so to clarify, are you using the zip.cfc from
https://github.com/CFCommunity/CFScript-Community-Components ?
Sorry, I don't think I know Russ, who it looks like authored it.
nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]
On Mon, Jun 25, 2012 at 1:13 AM, Paul
Hmmm, for some reason I thought there had been some functions for zip... Oh
well, more tags not converted to script that adobe think we don't use :-(
--
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543
On Tue, Jun 26, 2012 at
To be fair, we've been expanded native script functionality _and_ the
Script Stuff as CFCs in each release. It's getting there.
On Mon, Jun 25, 2012 at 10:05 AM, Andrew Scott andr...@andyscott.id.au wrote:
Hmmm, for some reason I thought there had been some functions for zip... Oh
well, more
Yes, we can agree getting there.
But would it have not been better to sit down and think that people are
going to want cfscript version of everything, and hold of releasing until
it is done and not 4 versions later?
--
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+:
But would it have not been better to sit down and think that people are
going to want cfscript version of everything, and hold of releasing until
it is done and not 4 versions later?
Probably not - you can either get some things now, or maybe get
everything later. Note the word maybe.
Dave
This topic has devolved a bit - let's see if we can actually help Paul
Paul, are you just looking for an example of creating a zip file from let's
say, a specific directory? I'd be happy to send you a couple of working
examples if you tell just what you need it to do.
=]
--
Alan Rother
On 6/26/2012 1:35 AM, Raymond Camden wrote:
Errr, yes, so sorry we couldn't do _everything_ people wanted in CF10.
CF11 will have every feature requested. Ever.
the cfcommunity's done a good job w/some of what was missing--it's just this
one
case where *i'm* not getting the syntax. you guys
On 6/25/2012 11:24 PM, Alan Rother wrote:
This topic has devolved a bit - let's see if we can actually help Paul
well since this list is also a part of the cf community, posting a few simple
cfscript zip examples for all the function's actions would be a good idea. an
even better one would be
On Mon, Jun 25, 2012 at 8:14 PM, Paul Hastings p...@sustainablegis.com wrote:
and FYI i would have simply contacted the author (russplaysguitar) if github
actually had functionality for that.
RIAForge let's you contact project owners! ;)
--
If we have any takers, I would especially love it if someone would create a
demo in the form of an MXUnit test case and issue a pull request. Anyone...
?
In fact, if somebody makes a demo, I can make the test case for you and add
it to the project.
Paul's got a good idea though. We could really
On 6/26/2012 9:24 AM, Nathan Strutz wrote:
Paul's got a good idea though. We could really use some solid demos. Paul,
why not add the missing test case and the missing demos as separate bug
reports on github? They're both good ideas.
i would if i 100% understood it in the first place. don't
Right. I was talking about why _I_ generally don't like cfscript.
But, honestly, if they don't really know how to do anything in javascript,
then I'm not sure what they're doing writing CFML (or any web application
development language).
Scott
On Tue, Feb 21, 2012 at 7:27 PM, Aaron Rouse
You might be surprised at how many people I come across in the industry who
are making a good solid living writing CF apps but barely can write CSS,
HTML, JavaScript and really even much in regards to SQL. Quite often
though they are using some sort of CF framework or other core tool that
a more
As of CF9, the vast majority of CF can be written in script, if you
desire. Almost every tag has a cfscript equivalent (I believe there were a
few that didn't make the cut, but I can't recall which ones off-hand). Of
course, some things are a bit more tedious doing them in script (such as
Agreed and someone could always write themselves some custom functions as
wrappers to CF tags for prior versions CF or perhaps even what is missing
in the current. To a point at least. I have been a CFScript Nazi for well
over a decade now but fully recognize a place for it and a place for when
On Mon, Feb 20, 2012 at 7:50 PM, Robert Rhodes rrhode...@gmail.com wrote:
I do wish Adobe would fill out CF so that one could write mostly in
cfscript and avoid cf tags altogether, if desired. It would also help when
I end up around small-minded coders who scoff at CF merely because of the
I have worked with CF developers who scoff at any CFScript usage but for
reasons most would not assume. They did it because they flat out did not
understand the syntax and I am not referring to some abundant overuse of
CFScript here. It can sometimes be a balancing act of coding how you want
You mean I should write a book on CFScript? Fantastic?
Betascript Publishing hhhm...
Anyone notice the tagline states:
ColdFusion Markup Language, JavaScript, BlogCFC
Now THAT is interesting...
Steve 'Cutter' Blades
Adobe Community Professional
Adobe Certified Expert
Advanced Macromedia
Yeah, or how about the red seal on the cover that says High Quality
Content by WIKIPEDIA articles!? LOL :-D
On 2/21/2012 11:04 AM, Steve 'Cutter' Blades wrote:
You mean I should write a book on CFScript? Fantastic?
Betascript Publishing hhhm...
Anyone notice the tagline states:
This publisher releases something like 10,000+ titles a year: they scrape
Wikipedia content and sell it.
http://en.wikipedia.org/wiki/VDM_Publishing
Billy Cravens
bdcrav...@gmail.com
On Feb 21, 2012, at 1:19 PM, Carl Von Stetten wrote:
Yeah, or how about the red seal on the cover that
My main issue with cfscript is that it's easy to confuse at first glance
between that and javascript (for cases when you have JS mixed in with CF
code, as the legacy app I work on at work has). So, it's not really
cfscript's fault as much as a personal bugaboo.
Scott
On Tue, Feb 21, 2012 at
cfscript to many defeats the who point of why they chose cf in the first
place, because it was a html like easy to learn tag based language.
When you go down the route of doing all your code in script, using OOP
style coding, then surely you would just be better off writing directly in
JAVA ?
Well, nobody's better off writing in Java, but C# would be an alternative.
On Wednesday, February 22, 2012, Russ Michaels wrote:
cfscript to many defeats the who point of why they chose cf in the first
place, because it was a html like easy to learn tag based language.
When you go down the
The people I was referring to I am certain do not know how to write
anything or much of anything in JavaScript. So it is not a matter of
CFScript confusing them into thinking it is JavaScript.
On Tue, Feb 21, 2012 at 6:55 PM, Scott Brady dsbr...@gmail.com wrote:
My main issue with cfscript
On Mon, Feb 20, 2012 at 10:48 AM, Robert Rhodes rrhode...@gmail.com wrote:
Are there any CFScript books out there? I ordered this onw but it was a
complete joke. A total waste of money:
http://www.barnesandnoble.com/w/cfscript-lambert-m-surhone/1026883099.
Is there a reason you want to
For what its worth I have a cfscript cheatsheet here:
http://www.petefreitag.com/cheatsheets/coldfusion/cfscript/
It lists much but certainly not all of what you need to know to use
cfscript. Feedback, suggestions welcome.
--
Pete Freitag - Adobe Community Professional
http://foundeo.com/ -
Hi Cameron. I know CF very well. I been coding in it for many years. But,
I admit, I am a little tagged out.
Cfscript feels more elegant, and as I learn more and more javascript, it
seems a natural time to try to get completely up to speed on cfscript.
I do wish Adobe would fill out CF so
I'm attemping to create a function that adds spaces either
in front of or behind a string.
Hi Josh, a couple of things. First, ColdFusion has the LJustify(),
RJustify(), and CJustify() functions which will do exactly what you're
trying to accomplish already built in.
Second, your function
If you're displaying this in a browser, then HTML is likely the culprit,
condensing multiple spaces into just one. Use non-breaking spaces (or wrap
your output in pre tags) to get HTML to output multiple spaces.
On Mon, Aug 22, 2011 at 11:19 AM, Josh Cesana joshuaces...@yahoo.comwrote:
I'm
just off the top of my head:
function spaceFiller(cell, fill, align) {
var space = RepeatString(' ', fill - Len(Cell));
return iif(align eq 'R', de(space cell), de(cell space));
}
You may need to deal with the scenario of cell having more characters
than the value of fill. Also, if
Wow: LJustify(), RJustify(), and CJustify() functions. Who woulda
thunk it. Brilliant. I guess.
On 22 August 2011 17:37, Justin Scott leviat...@darktech.org wrote:
I'm attemping to create a function that adds spaces either
in front of or behind a string.
Hi Josh, a couple of things. First,
Wow: LJustify(), RJustify(), and CJustify() functions. Who
woulda thunk it. Brilliant. I guess.
Whenever I'm working with people relatively new to CF my number one
piece of advice is to become very familiar with the function reference
so you don't spend a bunch of time re-writing functions
Thanks all - the built in function is exactly what I needed. I am fairly new to
CF so I will definitely spend time learning the functions. Thanks again.
~|
Order the Adobe Coldfusion Anthology now!
On Mon, Nov 15, 2010 at 7:18 PM, Sean Corfield wrote:
...
(it doesn't affect my position that comments should never change the
semantics of code - although, as noted by Ray, the example given only
affects metadata so it would only affect the semantics of a program
that tested that metadata...
Sorry - what?
On Mon, Nov 15, 2010 at 10:33 PM, Andrew Scott andr...@andyscott.id.au wrote:
No annotations in the comments was mentioned to be slower than using the
other way.
Regards,
Andrew Scott
http://www.andyscott.id.au/
I go with the first route as Sean Corfield has made what I consider to
be a very excellent point, which is that comments should never have
effect on the executing code. Comments are for documentation only.
Judah
On Mon, Nov 15, 2010 at 10:15 AM, John Allen johnfal...@gmail.com wrote:
Hey
No comments driving behavior! :-)
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
/* This is me agreeing */
I agree!
On Mon, Nov 15, 2010 at 3:35 PM, Matt Quackenbush quackfu...@gmail.comwrote:
No comments driving behavior! :-)
~|
Order the Adobe Coldfusion Anthology now!
I agree too - although in this case the comments just impact metadata.
displayname/description/hint are only used in auto-display.
On Mon, Nov 15, 2010 at 4:42 PM, Charlie Griefer
charlie.grie...@gmail.com wrote:
/* This is me agreeing */
I agree!
On Mon, Nov 15, 2010 at 3:35 PM, Matt
Method one, there is a performance hit when using notations.
Regards,
Andrew Scott
http://www.andyscott.id.au/
-Original Message-
From: John Allen [mailto:johnfal...@gmail.com]
Sent: Tuesday, 16 November 2010 5:16 AM
To: cf-talk
Subject: cfscript based components formatting
Thanks for the advice.
I like method one.
On Mon, Nov 15, 2010 at 5:58 PM, Andrew Scott andr...@andyscott.id.auwrote:
Method one, there is a performance hit when using notations.
Regards,
Andrew Scott
http://www.andyscott.id.au/
-Original Message-
From: John Allen
On Mon, Nov 15, 2010 at 2:58 PM, Andrew Scott andr...@andyscott.id.au wrote:
Method one, there is a performance hit when using notations.
Is there? Why so?
(it doesn't affect my position that comments should never change the
semantics of code - although, as noted by Ray, the example given only
, 16 November 2010 1:18 PM
To: cf-talk
Subject: Re: cfscript based components formatting
On Mon, Nov 15, 2010 at 2:58 PM, Andrew Scott andr...@andyscott.id.au
wrote:
Method one, there is a performance hit when using notations.
Is there? Why so?
(it doesn't affect my position
-
From: Sean Corfield [mailto:seancorfi...@gmail.com]
Sent: Tuesday, 16 November 2010 1:18 PM
To: cf-talk
Subject: Re: cfscript based components formatting
On Mon, Nov 15, 2010 at 2:58 PM, Andrew Scott andr...@andyscott.id.au
wrote:
Method one, there is a performance hit when using notations
No annotations in the comments was mentioned to be slower than using the
other way.
Regards,
Andrew Scott
http://www.andyscott.id.au/
-Original Message-
From: Raymond Camden [mailto:rcam...@gmail.com]
Sent: Tuesday, 16 November 2010 2:56 PM
To: cf-talk
Subject: Re: cfscript based
Which would be odd, since I believe the claim for CF9 was that you can
theoretically do everything in cfscript (though writing queries blows
in it, you can still do it).
Scott
On Tue, Jan 26, 2010 at 1:17 PM, Jason Durham jdur...@cti-stl.com wrote:
That link is for the CFML equivalents in
That's the rub theoretically everything ;) Hopefully it will
continue to grow until it hits 100%.
On Wed, Jan 27, 2010 at 5:24 AM, Scott Brady dsbr...@gmail.com wrote:
Which would be odd, since I believe the claim for CF9 was that you can
theoretically do everything in cfscript (though
The CF9 docs have had this ever since CF9 was released.
http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSe9cbe5cf462523a02805926a1237efcbfd5-7fff.html
~|
Want to reach the ColdFusion community with something they want?
sorry, I saw that page before, but I could not find cfsetting, or is it
somewhere buried there?
On Tue, Jan 26, 2010 at 10:23 AM, Matt Quackenbush quackfu...@gmail.comwrote:
The CF9 docs have had this ever since CF9 was released.
That link is for the CFML equivalents in CFScript. If it's not there... there
is no equivalent. :)
-Original Message-
From: Carol F [mailto:cfcn...@gmail.com]
Sent: Tuesday, January 26, 2010 2:04 PM
To: cf-talk
Subject: Re: cfscript for cfsetting
sorry, I saw that page before, but I
I would try doing a cfdump and see what that gets you
cfdump var=#setting()#
Next I would try to guess the order of the arguments if it does exist
or
You can write your own function for it using something like so and inject it
into your CFC or include it as a UDF. I would imagine that this
, 2010 2:04 PM
To: cf-talk
Subject: Re: cfscript for cfsetting
sorry, I saw that page before, but I could not find cfsetting, or is it
somewhere buried there?
On Tue, Jan 26, 2010 at 10:23 AM, Matt Quackenbush quackfu...@gmail.com
wrote:
The CF9 docs have had this ever since CF9
Isn't a
cfloop from=x to =y index=i step=z
a counter loop?
Yes, it is. The difference is that the implementation is slightly less
flexible than the script version, but only slightly so, and only
noticeably so in edge cases that most of us will never see or touch or
even hear about.
x =
One of the reasons that Adobe have quoted is to ease migration from other
languages. Attracting more developers being the goal.
Personally, my eyes prefer cfscript stylee unless I'm outputting html / xml.
Dominic
2009/10/5 Mike Kear afpwebwo...@gmail.com
I've been trying to see what's the
Faster to read and type when working with blocks of code.
cfset var = ''
vs
var = '';
The other thing I like is that it enforces more of a MVC approach. Less
variable declaration nested inside of your output tags and you'll find yourself
writing logic outside of the HTML output.
I would generally agree that cfscript is prettier and easier to
read and we should be able to do everything in cfscript. I would
more likely use it for component development where output is not
typical, and the ability to build whole cfcs in cfscript is cool.
Rick
You can't express a true counter (for) loop with CFLOOP, only a
condition loop (while). So that's one reason. Probably the reason I
use it most often, even over reducing verbosity.
Beyond verbosity and a couple edge cases, I think it's pretty much
entirely personal preference.
cheers,
Isn't a
cfloop from=x to =y index=i step=z
a counter loop?
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
2009/10/5 Barney Boisvert bboisv...@gmail.com:
You can't express a true counter (for) loop with CFLOOP, only a
condition loop (while). So that's one
@Daniel,
Glad that worked for you. Out of curiosity, don't you need LTE
(rather than just LT) to get your full loop? A bit OT, but seems like
you'd be missing some results if you only have the LT test?
cfscript
test = [test1,test2];
for (awesomevariable = 1; awesomevariable LTE
Oops, forgot to sign off I was so frustrated.
Thanks in advance to anyone who hopefully has a couple of minutes to tell me
this is something obvious.
Daniel Jimenez
Thanks in advance for any advice anyone can give. I'm having a very
odd problem where, after running for a period of time, all
Is that code in a CFC that uses 'awesomevariable' and/or 'test' as a
variable name within another method? If so, just var-scope everything
and the problem should vanish.
cheers,
barneyb
On Wed, Nov 19, 2008 at 9:38 AM, Daniel Jimenez
[EMAIL PROTECTED] wrote:
Thanks in advance for any advice
are doing...
}
-Mark
Mark A. Kruger, CFG, MCSE
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2008 12:29 PM
To: cf-talk
Subject: Re: CFScript for loop broken
:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2008 12:42 PM
To: cf-talk
Subject: RE: CFScript for loop broken? (aka HELP!!)
Barney,
Unusual syntax for a for loop... Looks more like a while loop. I would
have expected something like...
for(awesomevariable=1; awesomevariable LT (ArrayLen(test
else you are doing...
}
-Mark
Mark A. Kruger, CFG, MCSE
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2008 12:29 PM
To: cf-talk
Subject: Re
Is that code in a CFC that uses 'awesomevariable' and/or 'test' as a
variable name within another method? If so, just var-scope everything
and the problem should vanish.
cheers,
barneyb
Nope you're seeing it raw in CFM page. The CFM we use was mentioned previously
as being
Further more this only happens with a for loop inside of a cfscript, this
does NOT happen inside of a cfloop!
A possible reason for this is that cfloop will not evaluate the
ArrayLen on every iteration of the loop which is very different. While
there doesn't appear to be a good reason for the
Further more this only happens with a for loop inside of a cfscript,
this does NOT happen inside of a cfloop!
A possible reason for this is that cfloop will not evaluate the
ArrayLen on every iteration of the loop which is very different.
While
there doesn't appear to be a good reason
An update for those who are interested. I've switched to the 64 bit Sun Hotspot
JVM and the problem seems to have cleared up. It appears there might be some
JRockit / CF8x64 issues.
~|
Adobe® ColdFusion® 8 software 8 is the
@Daniel,
Glad that worked for you. Out of curiosity, don't you need LTE (rather than
just LT) to get your full loop? A bit OT, but seems like you'd be missing some
results if you only have the LT test?
cfscript
test = [test1,test2];
for (awesomevariable = 1; awesomevariable LTE
On Tue, Aug 26, 2008 at 10:45 AM, Scott Stewart [EMAIL PROTECTED]wrote:
Is it possible to do a query output loop in cfscript using something
other than WriteOutput?
obvious question is... why? :)
for (i=1; i lt queryname.recordcount; i=i+1) { // you can pretty that up a
bit if you're on CF8
Are you wishing for your function to return the generated content as a
return variable as opposed to directly outputting to the page buffer?
If so, you can concatenate strings together and then return the string at
the end of the function.
I'm not really sure where you are going with this
trying to make sense out of some screwy logic that someone else did
although I'm about ready to rewrite it with tags...
Charlie Griefer wrote:
On Tue, Aug 26, 2008 at 10:45 AM, Scott Stewart [EMAIL PROTECTED]wrote:
Is it possible to do a query output loop in cfscript using something
nope,
I need to populate a function call based on another query
Brad Wood wrote:
Are you wishing for your function to return the generated content as a
return variable as opposed to directly outputting to the page buffer?
If so, you can concatenate strings together and then return the
Is it possible to do a query output loop in cfscript using
something other than WriteOutput?
The only way to write any output directly from CFSCRIPT is to use
WriteOutput. You can, of course, invoke functions written in CFML from
CFSCRIPT.
Dave Watts, CTO, Fig Leaf Software
lemme rephrase...
I'm trying to populate a function call, by looping over the record count
of a query
to end up with something like this:
function(sunday_0, mon_0, tues_0)
function(sunday_1, monday_1, tues_1)
etc.
the number is dynamic based on the record count of a query..
code:
yea but...function calls shouldn't have dynamic number of arguments.
perhaps u mean to create a list of arguments and pass it in as 1 argument?
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
yea but...function calls shouldn't have dynamic number of arguments.
Why not?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern
I'm trying to populate a function call, by looping over the
record count of a query
What you have looks fine to me. What's the problem, exactly?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our
I'm having a hard time tracking down the source of an error I'm
receiving from a recursive function. Are these loops identical?
Not quite, the cfscript loop should look like this:
for (i=1; i LTE qNav.recordCount; i=i+1) {
.
}
Dominic
--
Blog it up:
you need to declare i via the script approach. cfloop does a basic
declaration for you. the for loop does not.
NOTE: if this loop is within a cffunction then ensure you have scoped i
correctly (place var i = 1 above the loop)
or (i = 1; i LTE qNav.recordCount; i=i+1) {
.
and they appear identical.
-Original Message-
From: Patrick Santora [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 15, 2008 8:18 AM
To: CF-Talk
Subject: Re: cfscript loop versus cfloop
you need to declare i via the script approach. cfloop does a basic
declaration for you. the for loop does
The version with cfloop is the one that's giving me trouble.
Is that an 'L' for the cfloop index or an uppercase 'i'? Other than that I'd
say we'd need to see more (nothing wrong with the cfloop or scripted loop if
i is set before it).
Dominic
--
Blog it up:
trouble. Perhaps
it's not in the loop syntax. I've gone character by character comparing
the rest of the code in each function and they appear identical.
-Original Message-
From: Patrick Santora [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 15, 2008 8:18 AM
To: CF-Talk
Subject: Re
Provided that i is set to 1 before the for loop (var i = 1;), then yes, the
loops are identical
..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com
-Original Message-
From: Jason Durham [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 15, 2008 9:08 AM
To:
just an observation but the index in the cfloop doesnt look like an 'i'
my eyes may be playing me up though!!!
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
1 - 100 of 480 matches
Mail list logo