RE: Stupid Question

2011-07-01 Thread Andrew Scott
lto:br...@electricedgesystems.com] > Sent: Saturday, 2 July 2011 4:19 AM > To: cf-talk > Subject: RE: Stupid Question > > > can't anyone on this list take a joke ;-) > > Thanks for being perfect Andrew ;-) > > Cheers >

Re: Stupid Question

2011-07-01 Thread Sean Corfield
On Thu, Jun 30, 2011 at 8:28 PM, Andrew Scott wrote: > Yes but the code should be written > > > > Shouldn't that be: query*() functions take a query variable, not a string. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://wor

RE: Stupid Question

2011-07-01 Thread Bryan Stevenson
; Regards, > Andrew Scott > http://www.andyscott.id.au/ > > > > > -Original Message- > > From: Bryan Stevenson [mailto:br...@electricedgesystems.com] > > Sent: Friday, 1 July 2011 7:48 AM > > To: cf-talk > > Subject: Re: Stupid Question >

Re: Stupid Question

2011-07-01 Thread Russ Michaels
:.:.:.:.:.:.:.:. > > Bobby Hartsfield > > http://acoderslife.com > > http://cf4em.com > > > > > > > > -Original Message- > > From: Stephane Vantroyen [mailto:s...@emakina.com] > > Sent: Thursday, June 30, 2011 2:56 PM > > To: cf-tal

Re: Stupid Question

2011-07-01 Thread Scott Brady
artsfield wrote: > > Yes, performance. > > > .:.:.:.:.:.:.:.:.:.:.:.:.:. > Bobby Hartsfield > http://acoderslife.com > http://cf4em.com > > > > -Original Message- > From: Stephane Vantroyen [mailto:s...@emakina.com] > Sent: Thursday, June 30, 2011

RE: Stupid Question

2011-06-30 Thread Andrew Scott
> To: cf-talk > Subject: Re: Stupid Question > > > Well there is a slight nuance there.you can use CFET to set the value of a > column in a specific row of a querybut it's sort of cheating because you do > it using functionsyou can't set

RE: Stupid Question

2011-06-30 Thread Andrew Scott
to:rob...@austin-williams.com] > Sent: Friday, 1 July 2011 5:57 AM > To: cf-talk > Subject: RE: Stupid Question > > > > Out of curiosity, what condition was your cfparam trying to prevent? > > The URL structure works like this: > > http://blah-blad.com/ser

Re: Stupid Question

2011-06-30 Thread Leigh
> Yes I was ;-) Fortunately some of us have a good filter for screening that stuff out ;) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: h

Re: Stupid Question

2011-06-30 Thread Russ Michaels
every needs a good tool :-) On Thu, Jun 30, 2011 at 11:04 PM, Bryan Stevenson < br...@electricedgesystems.com> wrote: > > Yes I was ;-) > > ...and don't forget to read my whole posthere's the piece you > missed... > > > but it's sort of > > > > cheating because you do it using functions.

Re: Stupid Question

2011-06-30 Thread Bryan Stevenson
Yes I was ;-) ...and don't forget to read my whole posthere's the piece you missed... > but it's sort of > > cheating because you do it using functionsyou can't set it directly > > as was shown in this thread. So I already stated I was being a toolI try and do that so others d

Re: Stupid Question

2011-06-30 Thread Russ Michaels
That is just being Pedantic Bryan :-) clearly it was meant you cannot do On Thu, Jun 30, 2011 at 10:48 PM, Bryan Stevenson < br...@electricedgesystems.com> wrote: > > Well there is a slight nuance there.you can use CFET to set the > value of a column in a specific row of a querybut i

Re: Stupid Question

2011-06-30 Thread Leigh
> Well there is a slight nuance there. Yep. I am aware of that option .. but could not see your code from here ;) Mystery solved. (Thanks for taking the time to satisfy my curiosity :) -Leigh ~| Order the Adobe Coldfusio

Re: Stupid Question

2011-06-30 Thread Bryan Stevenson
Well there is a slight nuance there.you can use CFET to set the value of a column in a specific row of a querybut it's sort of cheating because you do it using functionsyou can't set it directly as was shown in this thread. There I set the value of a column in a query to blah bla

Re: Stupid Question

2011-06-30 Thread Michael Grant
Also, if you have a variable (not a struct) named capability_detail.capability_id isDefined will return true, despite the fact that it's not a key in the structure. StructKeyExists is better IMO. On Thu, Jun 30, 2011 at 5:29 PM, Russ Michaels wrote: > > As I said earlier, IsDefined() will searc

Re: Stupid Question

2011-06-30 Thread Russ Michaels
that is probably the cause of your problem them, you cannot use cfset or cfparam to set a value in a query. On Thu, Jun 30, 2011 at 8:38 PM, Leigh wrote: > > > capability_detail is a query. > > It returns one and only one record... > > Out of curiosity, what condition was your cfparam trying to

Re: Stupid Question

2011-06-30 Thread Russ Michaels
As I said earlier, IsDefined() will search every single scope for a var with the name you you specify, StructKeyExists() will only look in the specified struct. On Thu, Jun 30, 2011 at 7:55 PM, Stephane Vantroyen wrote: > > Maybe a stupid question too, but why is it better to use structkeyexis

RE: Stupid Question

2011-06-30 Thread Bobby Hartsfield
Yes, performance. .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Stephane Vantroyen [mailto:s...@emakina.com] Sent: Thursday, June 30, 2011 2:56 PM To: cf-talk Subject: Re: Stupid Question Maybe a stupid question too

RE: Stupid Question

2011-06-30 Thread Leigh
> The cfparam tag was trying to set default values (like > zero) for columns that may not always be returned from the > query. That did not work, but the IsDefined did work.  So what code did you end up using to "set this default"? I ask because nothing I am envisioning works under CF9. No error

RE: Stupid Question

2011-06-30 Thread Robert Harrison
//www.austin-williams.com/unplugged -Original Message- From: Leigh [mailto:cfsearch...@yahoo.com] Sent: Thursday, June 30, 2011 3:38 PM To: cf-talk Subject: RE: Stupid Question > capability_detail is a query. > It returns one and only one record... Out of curiosity, what condition was y

RE: Stupid Question

2011-06-30 Thread Leigh
> capability_detail is a query.  > It returns one and only one record... Out of curiosity, what condition was your cfparam trying to prevent? 1) query contained 0 records 2) query did _not_ contain the column "capability_id" .. ? ~~

RE: Stupid Question

2011-06-30 Thread Robert Harrison
To answer the question, capability_detail is a query. It returns one and only one record... so I personally see no reason to avoid IsDefined in this case. And thanks for the correction on my syntax error. That was helpful and the code is working now. When I'm heavily focused on the logic I

Re: Stupid Question

2011-06-30 Thread Stephane Vantroyen
Maybe a stupid question too, but why is it better to use structkeyexists() than isdefined() ? Both will check if the given variable exists right? I don't get it, is it bound to performance or so? >I thought of that, but then wasn't sure how that would behave >if capability_detail was a query.

Re: Stupid Question

2011-06-30 Thread Dan Baughman
> And you should avoid using isDefined(). > > > Regards, > Andrew Scott > http://www.andyscott.id.au/ > > > > -Original Message- > > From: Dan Baughman [mailto:dan.baugh...@gmail.com] > > Sent: Friday, 1 July 2011 4:05 AM > > To: cf

RE: Stupid Question

2011-06-30 Thread Leigh
> Actually without getting into a flame war I wanted to find out what type of object "capability_detail" is first .. and tackle the isDefined / structKeyExists debate later ;) ~| Order the Adobe Coldfusion Anthology now! http:

RE: Stupid Question

2011-06-30 Thread DURETTE, STEVEN J (ATTASIAIT)
But if you include the scope in the call then you would be fine right? I SCOPE EVERYTHING!!! -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: Thursday, June 30, 2011 2:18 PM To: cf-talk Subject: Re: Stupid Question and the reason being that IsDefined() will

RE: Stupid Question

2011-06-30 Thread DURETTE, STEVEN J (ATTASIAIT)
Why avoid isDefined()? -Original Message- From: Andrew Scott [mailto:andr...@andyscott.id.au] Sent: Thursday, June 30, 2011 2:12 PM To: cf-talk Subject: RE: Stupid Question Actually without getting into a flame war with Dave and others, it should be better to use And you should

Re: Stupid Question

2011-06-30 Thread Russ Michaels
; > > And you should avoid using isDefined(). > > > Regards, > Andrew Scott > http://www.andyscott.id.au/ > > > > -Original Message- > > From: Dan Baughman [mailto:dan.baugh...@gmail.com] > > Sent: Friday, 1 July 2011 4:05 AM > > To: cf-talk

RE: Stupid Question

2011-06-30 Thread Andrew Scott
y, 1 July 2011 4:05 AM > To: cf-talk > Subject: Re: Stupid Question > > > You would ask it like this: > > > > On Thu, Jun 30, 2011 at 11:58 AM, Robert Harrison < robert@austin- > williams.com> wrote: > > > > > Just asking the question i

Re: Stupid Question

2011-06-30 Thread Leigh
> > Just asking the question is bad... the line > >        IsDefined(capability_detail.capability_id)> > > > > Gives me the error Because you forgot the quotes around the variable name. But as a few people have asked what is the value of "capability_detail" _not_ capability_detail.capability_i

Re: Stupid Question

2011-06-30 Thread Dan Baughman
You would ask it like this: On Thu, Jun 30, 2011 at 11:58 AM, Robert Harrison < rob...@austin-williams.com> wrote: > > Just asking the question is bad... the line > > > > Gives me the error >Element CAPABILITY_ID is undefined in CAPABILITY_DETAIL. > > > Robert B. Harrison > Dir

Re: Stupid Question

2011-06-30 Thread Russ Michaels
what is CAPABILITY_DETAIL at the point the error occurs a struct, a query, etc ? On Thu, Jun 30, 2011 at 6:58 PM, Robert Harrison wrote: > > Just asking the question is bad... the line > > > > Gives me the error >Element CAPABILITY_ID is undefined in CAPABILITY_DETAIL. > > > Ro

RE: Stupid Question

2011-06-30 Thread Robert Harrison
Just asking the question is bad... the line Gives me the error Element CAPABILITY_ID is undefined in CAPABILITY_DETAIL. Robert B. Harrison Director of Interactive Services Austin & Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631

Re: Stupid Question

2011-06-30 Thread Claude Schnéegans
>>It is assigned to a function that returns a query. Oh, I think you cannot assign a value to a column name in a query, neither with CFSET, neither with CFPARAM. You must use querySetCell () ~| Order the Adobe Coldfusion Antho

RE: Stupid Question

2011-06-30 Thread Leigh
> Sometime the query get that value and sometimes it doesn't... Do you mean "column"? Query objects are not the same as structures. I do not think you can just create a column that way. ie This fails ~| Order the Adobe Co

Re: Stupid Question

2011-06-30 Thread Claude Schnéegans
It may depend on the code between the two lines For instance, this works: capability_detail.capability_id = #capability_detail.capability_id# But this causes the error: capability_detail.capability_id = #capability_detail.capability_id# Your code may have redefined capability_detail to

RE: Stupid Question

2011-06-30 Thread Robert Harrison
williams.com/unplugged -Original Message- From: Dan Baughman [mailto:dan.baugh...@gmail.com] Sent: Thursday, June 30, 2011 1:42 PM To: cf-talk Subject: Re: Stupid Question I've seen stuff like this happen if capability_detail.capability_id had been assigned to a function that didnt retur

Re: Stupid Question

2011-06-30 Thread Russ Michaels
well first you don't need the #'s in the cfset second cfparam may be creating a variable instead of a struct, this happens in certain situations with older versions of CF. so try this On Thu, Jun 30, 2011 at 6:37 PM, Robert Harrison wrote: > > If I have these two lines of code: > >

Re: Stupid Question

2011-06-30 Thread Leigh
When the error occurs, is #capability_detail# defined? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups

Re: Stupid Question

2011-06-30 Thread Dan Baughman
I've seen stuff like this happen if capability_detail.capability_id had been assigned to a function that didnt return a value. For some reason its defined but in some null state. On Thu, Jun 30, 2011 at 11:37 AM, Robert Harrison < rob...@austin-williams.com> wrote: > > If I have these two lines

Re: stupid question (DWMX)

2003-09-16 Thread Calvin Ward
occasionally a disconnect in Code View. - Calvin - Original Message - From: "Mike Kear" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, September 16, 2003 5:53 PM Subject: RE: stupid question (DWMX) > That functionality is there i

RE: stupid question (DWMX)

2003-09-16 Thread John Wilker
I've known about that too. But it's no where near as easy or intuitive as simply ctrl clicking where you are currently looking. At least to me. -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 2:54 PM To: CF-Talk Subject: RE: stupi

RE: stupid question (DWMX)

2003-09-16 Thread Mike Kear
osing tags. Cheers, Michael Kear Windsor, NSW, Australia AFP Webworks. -Original Message- From: Massimo, Tiziana e Federica [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 September 2003 6:56 AM To: CF-Talk Subject: Re: stupid question (DWMX) > Speaking of stupid DWMX tricks. In stu

Re: stupid question (DWMX)

2003-09-16 Thread Massimo, Tiziana e Federica
> Speaking of stupid DWMX tricks. In studio ctrl click (I think that's what it > was) selected an entire tag pair. I know in DW I have the little list at the > bottom but is there anything like ctrl click? No, it's not there, please cast your vote: http://www.macromedia.com/support/email/wishform

RE: stupid question (DWMX)

2003-09-16 Thread Barney Boisvert
er 16, 2003 1:44 PM > To: CF-Talk > Subject: RE: stupid question (DWMX) > > > Speaking of stupid DWMX tricks. In studio ctrl click (I think > that's what it > was) selected an entire tag pair. I know in DW I have the little > list at the > bottom but is there

RE: stupid question (DWMX)

2003-09-16 Thread John Wilker
er 16, 2003 1:11 PM To: CF-Talk Subject: RE: stupid question (DWMX) kinda retarded and such basic functionality that we love in hs+ and cfstudio. tony weeg sr. web applications architect navtrak, inc. [EMAIL PROTECTED] www.navtrak.net office 410.548.2337 fax 410.860.2337 -Original Me

RE: stupid question (DWMX)

2003-09-16 Thread Tony Weeg
, September 16, 2003 4:12 PM To: CF-Talk Subject: RE: stupid question (DWMX) Doesn't do it in code view for me either. Have to open the wizard to get that. Dunno why -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 12:52 PM To: CF-Talk Subjec

RE: stupid question (DWMX)

2003-09-16 Thread John Wilker
Doesn't do it in code view for me either. Have to open the wizard to get that. Dunno why -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 12:52 PM To: CF-Talk Subject: RE: stupid question (DWMX) not in code view? tony weeg sr

RE: stupid question (DWMX)

2003-09-16 Thread Tony Weeg
not in code view? tony weeg sr. web applications architect navtrak, inc. [EMAIL PROTECTED] www.navtrak.net office 410.548.2337 fax 410.860.2337 -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 3:53 PM To: CF-Talk Subject: RE: stupid

RE: stupid question (DWMX)

2003-09-16 Thread Dave Watts
> hey why hasn't macromedia made it so that when you drag > an image from the left directory tree to the workspace > it fills in the h/w of the image tag? > > just another shortcomingdoesnt make sense? It works fine for me, in design view. I do that all the time. Dave Watts, CTO, Fig Leaf S

RE: Stupid Question? - Commenting Code That Does Not Show in Brow ser

2001-04-03 Thread Phoeun Pha
From: Jeffry Houser [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 5:26 PM To: CF-Talk Subject: RE: Stupid Question? - Commenting Code That Does Not Show in Brow ser I'd recommend against using this path... I'm reminded of something someone once said to me: A stupid idea t

RE: Stupid Question? - Commenting Code That Does Not Show in Browser

2001-04-03 Thread Arden Weiss
EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 2:52 PM To: CF-Talk Subject: Re: Stupid Question? - Commenting Code That Does Not Show in Browser If you are using CF just put in three dashes instead of two... At 12:34 PM 4/3/2001 -0600, you wrote: >I want to place comments in the code

RE: Stupid Question? - Commenting Code That Does Not Show in Brow ser

2001-04-03 Thread Phoeun Pha
heh, I beat u to that already -Original Message- From: Dylan Bromby [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 2:11 PM To: CF-Talk Subject: RE: Stupid Question? - Commenting Code That Does Not Show in Brow ser whoever asked this question or is interested in a useful

RE: Stupid Question? - Commenting Code That Does Not Show in Brow ser

2001-04-03 Thread Jeffry Houser
I'd recommend against using this path... I'm reminded of something someone once said to me: A stupid idea that works isn't a stupid idea. At 01:45 PM 04/03/2001 -0500, you wrote: >this is what i would do. > >u will have to work a login page (u decide how to verify it). all this >logi

Re: Stupid Question? - Commenting Code That Does Not Show in Browser

2001-04-03 Thread Jeffry Houser
(HTML comment, two dashes) (ColdFusion comment, three dashes) I have no idea if this is documented anywhere, but I imagine it must be. I figured it out accidently. At 12:34 PM 04/03/2001 -0600, you wrote: >I want to place comments in the code for the other developers. However I do >not

RE: Stupid Question? - Commenting Code That Does Not Show in Brow ser

2001-04-03 Thread Dylan Bromby
-Talk Subject: RE: Stupid Question? - Commenting Code That Does Not Show in Brow ser this is what i would do. u will have to work a login page (u decide how to verify it). all this login page will do is set a session or application variable to true, or some value. then in your actual code, i

RE: Stupid Question? - Commenting Code That Does Not Show in Brow ser

2001-04-03 Thread Phoeun Pha
-Talk Subject: RE: Stupid Question? - Commenting Code That Does Not Show in Browser Cold Fusion comments (ones that have three hyphens, ) don't show in the browser because the CF server does not send them through to the web server. Regular HTML comments (ones that have only two hyphens, ) d

Re: Stupid Question? - Commenting Code That Does Not Show in Browser

2001-04-03 Thread Bobbi Fox
At 12:34 PM 4/3/01 -0600, [EMAIL PROTECTED] wrote: >I want to place comments in the code for the other developers. However I do >not want the comments to show up in the browser with "view source." Am I >totally overlooking something? Yep. use three hypens in your comments: instead of two

Re: Stupid Question? - Commenting Code That Does Not Show in Browser

2001-04-03 Thread Larry W. Virden
ColdFusion has its own commenting notation that is removed before the HTML is sent back to the user. -- Larry W. Virden mailto:[EMAIL PROTECTED]> http://www.purl.org/net/lvirden/> Even if explicitly stated to the contrary, nothing in this posting should be construed as representing my employer

RE: Stupid Question? - Commenting Code That Does Not Show in Brow ser

2001-04-03 Thread Phoeun Pha
this is what i would do. u will have to work a login page (u decide how to verify it). all this login page will do is set a session or application variable to true, or some value. then in your actual code, i would wrap a condition around your comment, to only let the comment show (on the browse

RE: Stupid Question? - Commenting Code That Does Not Show in Brow ser

2001-04-03 Thread Kelly Matthews
are you using or use 3 dashes the other is to comment out HTML code that you WANT people to see in the source. 3 dashes HIDES it. > -Original Message- > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, April 03, 2001 2:35 PM > To: CF-Talk > Subject: Stupid Question

Re: Stupid Question? - Commenting Code That Does Not Show in Browser

2001-04-03 Thread Steven A. del Sol
If you are using CF just put in three dashes instead of two... At 12:34 PM 4/3/2001 -0600, you wrote: >I want to place comments in the code for the other developers. However I do >not want the comments to show up in the browser with "view source." Am I >totally overlooking something? > >Thank

RE: Stupid Question? - Commenting Code That Does Not Show in Brow ser

2001-04-03 Thread McGuckin, Chris
Use ColdFusion comment Tags (). The CF Server processes them so they don't show up like normal html comments (). Christopher McGuckin DynCorp I&ET, Inc. (703) 264-9247 "Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read". -Groucho Marx -Original Message--

RE: Stupid Question? - Commenting Code That Does Not Show in Brow ser

2001-04-03 Thread Adkins, Randy
Comments will only show in the 'View Source' when you prefix the information with two hyphens. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 2:35 PM To: CF-Talk Subject: Stupid Question? - Commenting Code That Does Not Show in

Re: [Stupid Question? - Commenting Code That Does Not Show in Browser]

2001-04-03 Thread Alex
<[EMAIL PROTECTED]> wrote: I want to place comments in the code for the other developers. However I do not want the comments to show up in the browser with "view source." Am I totally overlooking something? Thanks, Jeff ~~ Structure your ColdFu

RE: Stupid Question? - Commenting Code That Does Not Show in Browser

2001-04-03 Thread C. Hatton Humphrey
Cold Fusion comments (ones that have three hyphens, ) don't show in the browser because the CF server does not send them through to the web server. Regular HTML comments (ones that have only two hyphens, ) do get sent through. HTH Hatton > -Original Message- > From: [EMAIL PROTECTED] [m

Re: Stupid Question - Regular Expressions?

2001-03-12 Thread Fred T. Sanders
k" <[EMAIL PROTECTED]> Sent: Monday, March 12, 2001 9:43 AM Subject: Re: Stupid Question - Regular Expressions? > > CF does support regular expressions. > > Forta refers to them in a brief chapter in > > the Advanced 4.0 book (the green one). > > The one I

Re: Stupid Question - Regular Expressions?

2001-03-12 Thread Bryan Rieger
> CF does support regular expressions. > Forta refers to them in a brief chapter in > the Advanced 4.0 book (the green one). The one I left at home today... ;-) > For instance, inside a cfscript block: > > thisContent = > "#REReplaceNoCase(thisContent,"]*> ","","ALL")#"; > thisContent = "#RERe

Re: Stupid Question - Regular Expressions?

2001-03-12 Thread Fred T. Sanders
yes, but in a relatively limited sense. Some functions that use regular expressions. rereplace() rereplacenocase() refind() refindnocase() An ugly example that will remove doubleclick adds from the content of a page (along with everything between them, text, images, line breaks, whatever h

RE: Stupid Question - Regular Expressions?

2001-03-12 Thread Eben Hewitt
CF does support regular expressions. Forta refers to them in a brief chapter in the Advanced 4.0 book (the green one). For instance, inside a cfscript block: thisContent = "#REReplaceNoCase(thisContent,"]*> ","","ALL")#"; thisContent = "#REReplaceNoCase(thisContent,"]*>","|||","A

Re: Stupid question: How to handle $ values?

2000-05-08 Thread KChapman
Try Val(Replace("$23.12", "$", "", "ALL")) --Katrina Katrina Chapman Consultant Ameriquest Mortgage Reuben King