Re: cfscript assistance

2013-11-15 Thread Russ Michaels
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

Re: cfscript assistance

2013-11-15 Thread Matt Quackenbush
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

Re: cfscript assistance

2013-11-15 Thread Dave Watts
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

RE: cfscript assistance

2013-11-15 Thread Stephens, Larry V
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

RE: cfscript assistance

2013-11-15 Thread Stephens, Larry V
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]

Re: cfscript queries error in base.cfc

2013-10-15 Thread Kumar Shah
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

Re: cfscript queries error in base.cfc

2013-10-15 Thread Raymond Camden
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

Re: cfscript queries error in base.cfc

2013-10-15 Thread Raymond Camden
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

Re: cfscript queries error in base.cfc

2013-10-14 Thread Raymond Camden
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

Re: cfscript queries error in base.cfc

2013-10-14 Thread Nando
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();

Re: cfscript zip example?

2012-06-25 Thread Nathan Strutz
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]

Re: cfscript zip example?

2012-06-25 Thread Paul Hastings
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

Re: cfscript zip example?

2012-06-25 Thread Andrew Scott
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

Re: cfscript zip example?

2012-06-25 Thread Raymond Camden
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

Re: cfscript zip example?

2012-06-25 Thread Matt Quackenbush
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

Re: cfscript zip example?

2012-06-25 Thread Nathan Strutz
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

Re: cfscript zip example?

2012-06-25 Thread Andrew Scott
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

Re: cfscript zip example?

2012-06-25 Thread Raymond Camden
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

Re: cfscript zip example?

2012-06-25 Thread Andrew Scott
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+:

Re: cfscript zip example?

2012-06-25 Thread Dave Watts
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

Re: cfscript zip example?

2012-06-25 Thread Alan Rother
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

Re: cfscript zip example?

2012-06-25 Thread Paul Hastings
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

Re: cfscript zip example?

2012-06-25 Thread Paul Hastings
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

Re: cfscript zip example?

2012-06-25 Thread Raymond Camden
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! ;) --

Re: cfscript zip example?

2012-06-25 Thread Nathan Strutz
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

Re: cfscript zip example?

2012-06-25 Thread Paul Hastings
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

Re: CFScript Book

2012-02-22 Thread Scott Brady
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

Re: CFScript Book

2012-02-22 Thread 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

Re: CFScript Book

2012-02-21 Thread Scott Brady
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

Re: CFScript Book

2012-02-21 Thread Aaron Rouse
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

Re: CFScript Book

2012-02-21 Thread Cameron Childress
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

Re: CFScript Book

2012-02-21 Thread Aaron Rouse
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

Re: CFScript Book

2012-02-21 Thread Steve 'Cutter' Blades
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

Re: CFScript Book

2012-02-21 Thread Carl Von Stetten
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:

Re: CFScript Book

2012-02-21 Thread Billy Cravens
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

Re: CFScript Book

2012-02-21 Thread Scott Brady
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

Re: CFScript Book

2012-02-21 Thread Russ Michaels
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 ?

Re: CFScript Book

2012-02-21 Thread James Holmes
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

Re: CFScript Book

2012-02-21 Thread Aaron Rouse
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

Re: CFScript Book

2012-02-20 Thread Cameron Childress
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

Re: CFScript Book

2012-02-20 Thread Pete Freitag
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/ -

Re: CFScript Book

2012-02-20 Thread Robert Rhodes
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

Re: CFScript help

2011-08-22 Thread Justin Scott
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

Re: CFScript help

2011-08-22 Thread morgan l
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

Re: CFScript help

2011-08-22 Thread Dominic Watson
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

Re: CFScript help

2011-08-22 Thread Dominic Watson
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,

Re: CFScript help

2011-08-22 Thread Justin Scott
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

Re: CFScript help

2011-08-22 Thread Josh Cesana
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!

Re: cfscript based components formatting

2010-11-17 Thread denstar
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...

Re: cfscript based components formatting

2010-11-16 Thread Raymond Camden
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/

Re: cfscript based components formatting

2010-11-15 Thread Judah McAuley
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

Re: cfscript based components formatting

2010-11-15 Thread Matt Quackenbush
No comments driving behavior! :-) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: cfscript based components formatting

2010-11-15 Thread Charlie Griefer
/* 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!

Re: cfscript based components formatting

2010-11-15 Thread Raymond Camden
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

RE: cfscript based components formatting

2010-11-15 Thread Andrew Scott
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

Re: cfscript based components formatting

2010-11-15 Thread John Allen
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

Re: cfscript based components formatting

2010-11-15 Thread Sean Corfield
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

RE: cfscript based components formatting

2010-11-15 Thread Andrew Scott
, 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

Re: cfscript based components formatting

2010-11-15 Thread Raymond Camden
- 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

RE: cfscript based components formatting

2010-11-15 Thread Andrew Scott
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

Re: cfscript for cfsetting

2010-01-27 Thread Scott Brady
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

Re: cfscript for cfsetting

2010-01-27 Thread Raymond Camden
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

Re: cfscript for cfsetting

2010-01-26 Thread Matt Quackenbush
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?

Re: cfscript for cfsetting

2010-01-26 Thread Carol F
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.

RE: cfscript for cfsetting

2010-01-26 Thread Jason Durham
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

Re: cfscript for cfsetting

2010-01-26 Thread Gerald Guido
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

Re: cfscript for cfsetting

2010-01-26 Thread Carol F
, 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

Re: CFScript - what's the advantage?

2009-10-05 Thread s. isaac dealey
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 =

Re: CFScript - what's the advantage?

2009-10-05 Thread Dominic Watson
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

Re: CFScript - what's the advantage?

2009-10-05 Thread Tony Bentley
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.

Re: CFScript - what's the advantage?

2009-10-05 Thread Rick Root
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

Re: CFScript - what's the advantage?

2009-10-04 Thread Barney Boisvert
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,

Re: CFScript - what's the advantage?

2009-10-04 Thread James Holmes
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

Re: CFScript for loop broken? (aka HELP!!)

2008-11-20 Thread Daniel Jimenez
@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

Re: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Daniel Jimenez
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

Re: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Barney Boisvert
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

RE: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Mark Kruger
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

RE: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Mark Kruger
:[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

Re: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Barney Boisvert
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

Re: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Daniel Jimenez
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

Re: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Dominic Watson
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

Re: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Daniel Jimenez
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

Re: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Daniel Jimenez
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

Re: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Jason Fisher
@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

Re: cfscript question

2008-08-26 Thread Charlie Griefer
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

Re: cfscript question

2008-08-26 Thread Brad Wood
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

Re: cfscript question

2008-08-26 Thread Scott Stewart
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

Re: cfscript question

2008-08-26 Thread Scott Stewart
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

RE: cfscript question

2008-08-26 Thread Dave Watts
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

Re: cfscript question

2008-08-26 Thread Scott Stewart
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:

Re: cfscript question

2008-08-26 Thread Yuliang Ruan
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

RE: cfscript question

2008-08-26 Thread Dave Watts
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

RE: cfscript question

2008-08-26 Thread Dave Watts
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

Re: cfscript loop versus cfloop

2008-04-15 Thread Dominic Watson
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:

Re: cfscript loop versus cfloop

2008-04-15 Thread Patrick Santora
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) { .

RE: cfscript loop versus cfloop

2008-04-15 Thread Jason Durham
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

Re: cfscript loop versus cfloop

2008-04-15 Thread Dominic Watson
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:

Re: cfscript loop versus cfloop

2008-04-15 Thread Patrick Santora
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

RE: cfscript loop versus cfloop

2008-04-15 Thread Bobby Hartsfield
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:

Re: cfscript loop versus cfloop

2008-04-15 Thread Richard White
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   2   3   4   5   >