Re: CF9 to CF11 cfscript

2014-08-11 Thread Rob Voyle
Hi Adam Its the end of a workshop registration form where multiple participants can be registered. For each participant a series of emails are generated to both the participant and the workshop host, and the participant information is entered into a data bases. The page is then paused for a c

Re: CF9 to CF11 cfscript

2014-08-10 Thread Adam Cameron
You know CFML has had the sleep() function (which does what your code does) built-in since CF8, right? Your issue is probaby that "thread" is a keyword in CF9+. Replace your code with: sleep(4000); Wanting the page to pause whilst data is entered into the DB is an odd thing... given DB operati

CF9 to CF11 cfscript

2014-08-10 Thread Rob Voyle
Hi folks Migrating from cf9 to cf11 thread = CreateObject("java", "java.lang.Thread"); thread.sleep(4000); is now giving an error message "invalid token" What should the syntax be. I simply want the page to pause while data is entered into a database. Thanks Rob ~

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 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 wrote: > > > > for ( x=1; x<=G

Re: cfscript assistance

2013-11-15 Thread Dave Watts
> > if ( GetB.bcode[x] != xcampus ) > { > // do something > } And in an attempt to reduce future problems, it's worth pointing out that CFSCRIPT is basically JavaScript expression syntax with ColdFusion operators and functions. Dave Watts, CTO, Fig Leaf Software http://www.fi

Re: cfscript assistance

2013-11-15 Thread Matt Quackenbush
On Fri, Nov 15, 2013 at 9:35 AM, Stephens, Larry V wrote: > > > > 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?

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 wrote: > > I've stayed away from cfscript but now I'm looking at it in conjunction > with writing Excel spreadsheets. > > I looked at htt

cfscript assistance

2013-11-15 Thread Stephens, Larry V
I've stayed away from cfscript but now I'm looking at it in conjunction with writing Excel spreadsheets. I looked at https://learn.adobe.com/wiki/display/coldfusionen/cfscript and then https://learn.adobe.com/wiki/display/coldfusionen/Extending+ColdFusion+Pages+with+CFML+Scripting

Re: cfscript queries error in base.cfc

2013-10-15 Thread Raymond Camden
> >> > >> > >> > On Mon, Oct 14, 2013 at 12:44 PM, Raymond Camden < >> raymondcam...@gmail.com >> > >wrote: >> > >> > > >> > > Two things. >> > > >> > > 1) Don't forget that the code behind

Re: cfscript queries error in base.cfc

2013-10-15 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: > > > > > >

Re: cfscript queries error in base.cfc

2013-10-15 Thread Kumar Shah
line: > > > > > > > > But - it is wrapped in a try/catch, so you shouldn't be seeing it. If you > > get rid of the setname aspect, which I don't think you need, does it work > > ok? > > > > > > > > > > On Sun, Oct 13, 20

Re: cfscript queries error in base.cfc

2013-10-14 Thread Nando
ed in a try/catch, so you shouldn't be seeing it. If you > get rid of the setname aspect, which I don't think you need, does it work > ok? > > > > > On Sun, Oct 13, 2013 at 9:59 PM, Kumar Shah wrote: > > > > > This is the first time I am creatin

Re: cfscript queries error in base.cfc

2013-10-14 Thread Raymond Camden
you need, does it work ok? On Sun, Oct 13, 2013 at 9:59 PM, Kumar Shah wrote: > > This is the first time I am creating components wholly in cfscript. > > When running update or insert statements via the cfscript query functions > an error gets recorded like: > 22:52:17.01

cfscript queries error in base.cfc

2013-10-14 Thread Kumar Shah
This is the first time I am creating components wholly in cfscript. When running update or insert statements via the cfscript query functions an error gets recorded like: 22:52:17.017 - Expression Exception - in C:/ColdFusion9/CustomTags/com/adobe/coldfusion/base.cfc : line 460

Re[6]: cfscript zip example?

2012-06-26 Thread Michael David
Ah. My apologies to the list for my inadvertent faux pas. (And thanks to the two kind souls who sent me messages off-list...) -- Cheers! Michael David -- Original Message -- From: "Nathan Strutz" To: "cf-talk" Sent: 6/25/2012 10:18:28 PM Subject: Re: Re[4]:

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'

Re: cfscript zip example?

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

Re: Re[4]: cfscript zip example?

2012-06-25 Thread Nathan Strutz
lid enough on IIS7 for > high-volume production use? > > Seriously, not trying to touch off some debate here. I'm just > curious... > > -- > Cheers! > Michael David > > > -- Original Message -- > From: "Matt Quackenbush" > To: "

Re: cfscript zip example?

2012-06-25 Thread Raymond Camden
On Mon, Jun 25, 2012 at 8:14 PM, Paul Hastings 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 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 bet

Re[4]: cfscript zip example?

2012-06-25 Thread Michael David
To: "cf-talk" Sent: 6/25/2012 2:23:14 PM Subject: Re: Re[2]: cfscript zip example? >It's called Railo. :D > > >On Mon, Jun 25, 2012 at 12:52 PM, Michael David < >li...@michaeldavid.com >>wrote: > > >> >> >>Seriously! >> >

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 gu

Re: Re[2]: cfscript zip example?

2012-06-25 Thread Judah McAuley
12 at 1:23 PM, Matt Quackenbush > wrote: >> >> It's called Railo. :D >> >> >> On Mon, Jun 25, 2012 at 12:52 PM, Michael David >> wrote: >> >>> >>> Seriously! >>> >>> I sure wish that Adobe would provide a c

Re: Re[2]: cfscript zip example?

2012-06-25 Thread Raymond Camden
12:52 PM, Michael David wrote: > >> >> Seriously! >> >> I sure wish that Adobe would provide a cfscript solution for every >> cftag, for those of us who prefer the former. >> >> -- >> Cheers! >> Michael David >> >> >> -- Ori

Re: Re[2]: cfscript zip example?

2012-06-25 Thread Matt Quackenbush
It's called Railo. :D On Mon, Jun 25, 2012 at 12:52 PM, Michael David wrote: > > Seriously! > > I sure wish that Adobe would provide a cfscript solution for every > cftag, for those of us who prefer the former. > > -- > Cheers! > Michael David > > &

Re[2]: cfscript zip example?

2012-06-25 Thread Michael David
Seriously! I sure wish that Adobe would provide a cfscript solution for every cftag, for those of us who prefer the former. -- Cheers! Michael David -- Original Message -- From: "Andrew Scott" To: "cf-talk" Sent: 6/25/2012 11:05:08 AM Subject: Re: cfscrip

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 Manager

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 wo

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+: http

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 wrote: > > Hmmm, for some reason I thought there had been some functions for zip... Oh > well, more tags not converted

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 12:4

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,

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 wrote: > > 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 > wrote: > > > > Paul, Nathan is as

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 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 library. > > -- > Regards, >

Re: cfscript zip example?

2012-06-25 Thread Andrew Scott
PM, Paul Hastings wrote: > > 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 peo

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 softwar

Re: cfscript zip example?

2012-06-24 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] [about.me

cfscript zip example?

2012-06-24 Thread Paul Hastings
having a hard time getting my wooly head around the zip.cfc from cfcommunity. anyone know of any code examples for the action "zip" bits? thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfus

Re: Converting this java code into cfscript?

2012-06-12 Thread Richard White
Thanks Leigh, made a lot of sense and works perfect!! >See http://pastebin.com/M5CNshBp . Looks like my post got cut off again ... > >  >-Leigh ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusio

Re: Converting this java code into cfscript?

2012-06-09 Thread Leigh
See http://pastebin.com/M5CNshBp . Looks like my post got cut off again ...   -Leigh ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http:/

Re: Converting this java code into cfscript?

2012-06-09 Thread Leigh
> CellRangeAddress cellRangeAddress = sheet.getMergedRegion(i); Just drop the data type declarations in front of the variable names. Then instantiate classes with init() instead of "new ClassName( ...)". You may also want to break it up for better readability. I am heading out and cannot test

Converting this java code into cfscript?

2012-06-09 Thread Richard White
Hi, I am having difficulty understanding how i would change the follower Java code into cfscript... specifically the 'new CellRangeAddress' section: CellRangeAddress cellRangeAddress = sheet.getMergedRegion(i); CellRangeAddress newCellRangeAddress = new CellRangeAddress(newRow

RE: Best IDE for cfscript

2012-05-13 Thread Rick Faircloth
alk Subject: Re: Best IDE for cfscript I'm with Matt, IDEA is great. In many ways, big and small, it increases my productivity and code quality, and just improve the experience of coding all around. It's not without its warts, but it's improving all the time. I'd never go back.

Re: Best IDE for cfscript

2012-05-12 Thread Dave Merrill
I'm with Matt, IDEA is great. In many ways, big and small, it increases my productivity and code quality, and just improve the experience of coding all around. It's not without its warts, but it's improving all the time. I'd never go back. Dave Merrill On Mon, May 7, 2012 at 1:45 PM, Matt Quack

Re: Best IDE for cfscript

2012-05-07 Thread Guust Nieuwenhuis
When I need to do some quick editing I use Notepad++ on Windows or Textwragler on Mac (both free editors). When working on projects I use CFBuilder for all the ColdFusion specific features like Server management, tailview, extensions, ... Don't forget that CFBuilder has a free express version!

Re: Best IDE for cfscript

2012-05-07 Thread Brian Thornton
So there are large line number issues with most.. My backup is a old tool called PFE, Programmers FIle Editor. I've edited 14 GB text files with it. On Mon, May 7, 2012 at 1:21 PM, Eric Roberts wrote: > > I use CFEclipse with no problems.  Not a big fan of CFBuilder. > > Eric > > On Mon, May 7,

Re: Best IDE for cfscript

2012-05-07 Thread Matt Quackenbush
Since it hasn't been mentioned yet, I would also recommend giving Intellij IDEA a shot, *especially* if you work in other languages, too. It was quite a change for me, having used CFE/CFB for many years, but I doubt I could switch back, now. http://www.jetbrains.com/idea/ On Mon, May 7, 2012 at

Re: Best IDE for cfscript

2012-05-07 Thread Cameron Childress
On Mon, May 7, 2012 at 11:46 AM, Robert Rhodes wrote: > What is the best IDE for cfcript work? CFBuilder 2? CFEclipse? Or? Try them both. Decide for yourself. That are both built on Eclipse, so it's easy to switch. -Cameron ... ~~

Re: Best IDE for cfscript

2012-05-07 Thread Eric Roberts
I use CFEclipse with no problems. Not a big fan of CFBuilder. Eric On Mon, May 7, 2012 at 10:46 AM, Robert Rhodes wrote: > > What is the best IDE for cfcript work? CFBuilder 2? CFEclipse? Or? > > -RR > > > ~| Order the A

Best IDE for cfscript

2012-05-07 Thread Robert Rhodes
What is the best IDE for cfcript work? CFBuilder 2? CFEclipse? Or? -RR ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.house

Re: CFScript Book

2012-02-22 Thread Aaron Rouse
re" tool that a more advanced group of CF people developed. On Wed, Feb 22, 2012 at 4:50 AM, Scott Brady wrote: > > 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

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

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 wrote: > > My main issue with cfscript is tha

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. >

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 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

Re: CFScript Book

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

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.

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

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 ho

Re: CFScript Book

2012-02-21 Thread Cameron Childress
On Mon, Feb 20, 2012 at 7:50 PM, Robert Rhodes 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
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 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 scrip

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 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 Cameron Childress
On Mon, Feb 20, 2012 at 10:48 AM, Robert Rhodes 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 t

CFScript Book

2012-02-20 Thread Robert Rhodes
Hello to all. 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. All suggestions welcome. -RR

Re: debugging in cfscript

2012-02-09 Thread Carl Von Stetten
Oops. I missed that. Nevermind! :-[ On 2/9/2012 10:10 AM, Matt Quackenbush wrote: > Nopers. Daniel has an in his CFC. See his > previous posts in the thread. > > > On Thu, Feb 9, 2012 at 12:04 PM, Carl Von Stetten > wrote: > >> Rex, >> >> I think cf_abort is a custom tag, not a UDF, so it would

Re: debugging in cfscript

2012-02-09 Thread Matt Quackenbush
Nopers. Daniel has an in his CFC. See his previous posts in the thread. On Thu, Feb 9, 2012 at 12:04 PM, Carl Von Stetten wrote: > > Rex, > > I think cf_abort is a custom tag, not a UDF, so it would not be called > using cf_abort(). > -Carl > > On 2/9/2012 9:19 AM, Rex wrote: > > yes, but to c

Re: debugging in cfscript

2012-02-09 Thread Carl Von Stetten
Rex, I think cf_abort is a custom tag, not a UDF, so it would not be called using cf_abort(). -Carl On 2/9/2012 9:19 AM, Rex wrote: > yes, but to call cf_abort, you want to do cf_abort() > > It's like calling #now# instead of #now()# > > - Rex > > On 2/9/2012 5:46 AM, daniel kessler wrote: >>>

Re: debugging in cfscript

2012-02-09 Thread Rex
yes, but to call cf_abort, you want to do cf_abort() It's like calling #now# instead of #now()# - Rex On 2/9/2012 5:46 AM, daniel kessler wrote: >> you have cf_abort in your code instead of cf_abort() > I am using cf_abort. > > ~

Re: debugging in cfscript

2012-02-09 Thread daniel kessler
> Unfortunately, I also don't receive the dump or the abort. I even > built an array to dump to simplify the test and assure that there's > dumpable data.I guess I'm just not used to this. Maybe the > logs will reveal what happened. ok, it looks like the cf_dump() is working. If I put a

Re: debugging in cfscript

2012-02-09 Thread daniel kessler
>Looks like the issue is that you have the cf_dump() and cf_abort() calls >outside of the curly braces. ok, that's a thought that I hadn't considered. I moved them inside the brackets and now I don't receive an error. Thank you! Unfortunately, I also don't receive the dump or the abort. I ev

Re: debugging in cfscript

2012-02-09 Thread daniel kessler
>you have cf_abort in your code instead of cf_abort() I am using cf_abort. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.hous

Re: debugging in cfscript

2012-02-08 Thread Azadi Saryev
you have cf_abort in your code instead of cf_abort() On Thu, Feb 9, 2012 at 04:20, Matt Quackenbush wrote: > > Looks like the issue is that you have the cf_dump() and cf_abort() calls > outside of the curly braces. > > if ( // all those items ) > { >    // stuff here > } >    cf_dump(dbResult);

Re: debugging in cfscript

2012-02-08 Thread Matt Quackenbush
Looks like the issue is that you have the cf_dump() and cf_abort() calls outside of the curly braces. if ( // all those items ) { // stuff here } cf_dump(dbResult); cf_abort(); else // other stuff You need to move those two items inside of the }. HTH On Wed, Feb 8, 2012 at 2:0

Re: debugging in cfscript

2012-02-08 Thread daniel kessler
>The error code mentions Line 63 as the start of an if () statement, and >Line 52 as the start of the tag. We'll need probably the entire >if () block at the least, as it would seem the issue lies in there. > >Hard to speculate based solely upon the error message, as CF is notorious >for providin

Re: debugging in cfscript

2012-02-08 Thread Matt Quackenbush
The error code mentions Line 63 as the start of an if () statement, and Line 52 as the start of the tag. We'll need probably the entire if () block at the least, as it would seem the issue lies in there. Hard to speculate based solely upon the error message, as CF is notorious for providing rath

Re: debugging in cfscript

2012-02-08 Thread daniel kessler
>First off, this is a nearly 4 year old thread. It may or may not apply to >what you're working on now. > >What CFML engine and version are you using? > >What is the relevant code? I didn't think reposting was a good idea, since there was a thread with a relevant history. I'm using CF7. I post

Re: debugging in cfscript

2012-02-08 Thread Matt Quackenbush
with "{" on line 63, column 39. >a script statement beginning with "if" on line 63, column 17. >a cfscript tag beginning on line 52, column 18. >a cfscript tag beginning on line 52, column 18. > > > The error occurred in C:\localServer\beatch\cfc\emp

Re: debugging in cfscript

2012-02-08 Thread daniel kessler
nning with "{" on line 63, column 39. a script statement beginning with "if" on line 63, column 17. a cfscript tag beginning on line 52, column 18. a cfscript tag beginning on line 52, column 18. The error occurred in C:\localServer\beatch

Re: debugging in cfscript

2012-02-08 Thread daniel kessler
I added this to my component, but I'm getting an error while calling it from within the component. Then further down, I call the cf_dump, like cf_dump(dbResult); How do I implement this correctly? Thank you for your assistance. ~~~

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! http://www.amazon.com/Adobe-C

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 th

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 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, ColdFusion has

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 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 tags) to get HTML to output multiple spaces. On Mon, Aug 22, 2011 at 11:19 AM, Josh Cesana wrote: > > I'm attemping to create a func

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 (

CFScript help

2011-08-22 Thread Josh Cesana
I'm attemping to create a function that adds spaces either in front of or behind a string. For example, I want this "test" string to have 6 spaces after it, plus the 4 characters in "test" for a total of 10 characters. I have an "align" variable for both left and right alignment for the spaces.

Re: Dynamic SQL in CFScript

2011-04-26 Thread Sean Corfield
On Tue, Apr 26, 2011 at 11:32 AM, Kyle McLean wrote: > > SELECT > * > FROM > TBL > > WHERE > COL = '#arguments.testArg#' > > I know this doesn't help you, since you're on CF9, but I just wanted to note that Railo also supports an alternative syntax that was discussed by the CFML Advisory Com

Re: Dynamic SQL in CFScript

2011-04-26 Thread Kyle McLean
It does, but it still looks like it's a little more clunky (in my opinion at least :)) than the tag-based alternative. Bummer, since I much prefer the succinct style of CFSCRIPT for writing pretty much everything else in a component. Thanks for your help everyone! >var

Re: Dynamic SQL in CFScript

2011-04-26 Thread Raymond Camden
rguments.str#%",cfsqltype="cf_sql_varchar"); } q.setSQL(sql); var results = q.execute().getResult(); Does that make sense? On Tue, Apr 26, 2011 at 1:32 PM, Kyle McLean wrote: > > I've been working on a CF9 project, and I'm trying to take full advantage of > the cfs

Re: Dynamic SQL in CFScript

2011-04-26 Thread Jeffrey Battershall
Do you have the option of moving your query logic into a stored proc? It would be more secure. Jeff On Tue, Apr 26, 2011 at 2:32 PM, Kyle McLean wrote: > > I've been working on a CF9 project, and I'm trying to take full advantage of > the cfscript syntax for my components

Dynamic SQL in CFScript

2011-04-26 Thread Kyle McLean
I've been working on a CF9 project, and I'm trying to take full advantage of the cfscript syntax for my components. I have many cases where I'm using dynamic SQL based on the existence of an optional argument in a function. In CF8 and below it'd look something like this:

Re: I hate CFScript and I'm willing to pay for a CFScript --> CFtag parser

2011-04-09 Thread Michael Grant
I'm willing to pay for a C-64 version of Halo 3. > > > > > > On Thu, Apr 7, 2011 at 7:20 PM, Jeff Gladnick >wrote: > > > >> > >> I actually don't hate cfscript, but I do hate that we have both tags and > >> script based syntax for

Re: I hate CFScript and I'm willing to pay for a CFScript --> CFtag parser

2011-04-09 Thread James Holmes
That is the greatest thing ever. -- WSS4CF - WS-Security framework for CF http://wss4cf.riaforge.org/ On 9 April 2011 04:55, Judah McAuley wrote: > > Start here, Michael: > http://www.pcworld.com/article/224722/new_commodore_64_is_finally_herefor_real.html ~~~

Re: I hate CFScript and I'm willing to pay for a CFScript --> CFtag parser

2011-04-08 Thread Judah McAuley
: > >> >> I actually don't hate cfscript, but I do hate that we have both tags and >> script based syntax for CFML.  And since it started off as tags, I firmly >> believe that's the way it should stay. >> >> I understand lots of people feel differently,

Re: I hate CFScript and I'm willing to pay for a CFScript --> CFtag parser

2011-04-07 Thread Jeff Gladnick
>The translation is actually rather easy. It's just a bunch of RegEx for >parsing and rules for understanding. The limitations of cfscript are perfect >here as there are not many rules. The only thing would be the loops that are >available in cfscript but do not exist in stan

Re: I hate CFScript and I'm willing to pay for a CFScript --> CFtag parser

2011-04-07 Thread Jeff Gladnick
>That's funny. Actually I created a tags --> script converter a few weeks >ago, kind of for fun, kind of for upgrading to CF9. It works for basic >stuff, components, functions, some loops, try/catch, etc, but gets confused >with queries or anything else complicated. > >nathan strutz >[http://www.d

  1   2   3   4   5   6   7   8   9   10   >