RE: Help! brain dead?!

2005-04-11 Thread Ben Forta
Sure can
 

-Original Message-
From: Mark Drew [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 11, 2005 2:39 PM
To: CF-Talk
Subject: Help! brain dead?!

if I am within one function in a cfc, can I call another function as so:

cffunction name=dothis

  cfset rIhaveTo = doThat()

/cffunction


cffunction name=doThat



/cffunction
--
Mark Drew



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202229
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Help! brain dead?!

2005-04-11 Thread Dave Watts
 if I am within one function in a cfc, can I call another 
 function ...

Not only can you do this, it is the only way you can call functions that
have a private access modifier.

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 Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202231
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Help! brain dead?!

2005-04-11 Thread Mark Drew
Then the error lies somewhere else! g!

I keep getting a :

Entity has incorrect type for being called as a function.  
The symbol you have provided getFeatures is not the name of a function.  

(getFeatures is the function)

And I am calling it as so

cfset stTemp = getFeatures(9002)

so I am being brain dead again

On Apr 11, 2005 7:41 PM, Ben Forta [EMAIL PROTECTED] wrote:
 Sure can
 
 
 -Original Message-
 From: Mark Drew [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 11, 2005 2:39 PM
 To: CF-Talk
 Subject: Help! brain dead?!
 
 if I am within one function in a cfc, can I call another function as so:
 
 cffunction name=dothis
 
   cfset rIhaveTo = doThat()
 
 /cffunction
 
 cffunction name=doThat
 
 /cffunction
 --
 Mark Drew
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202232
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Help! brain dead?!

2005-04-11 Thread Mark Drew
Hmm.. its set as public .. would that do the trick?
MD

On Apr 11, 2005 7:54 PM, Dave Watts [EMAIL PROTECTED] wrote:
  if I am within one function in a cfc, can I call another
  function ...
 
 Not only can you do this, it is the only way you can call functions that
 have a private access modifier.
 
 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 Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!
 
 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202233
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Help! brain dead?!

2005-04-11 Thread Dave Watts
 Hmm.. its set as public .. would that do the trick?

No, public functions can be called by any other code.

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 Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202236
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Help! brain dead?!

2005-04-11 Thread Mark Drew
Well. its back to private and still no dice! aargh!

I shall have another look.. code blindness

MD

On Apr 11, 2005 8:12 PM, Dave Watts [EMAIL PROTECTED] wrote:
  Hmm.. its set as public .. would that do the trick?
 
 No, public functions can be called by any other code.
 
 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 Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202239
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Help! brain dead?!

2005-04-11 Thread Steve Brownlee
I've seen this error before and it happened when I had name conflicts in the
function.  For example, make sure you don't have
variables/query/array/structure naming conflicts.  Might not be the case for
you, but thought I'd throw it out there.

=  This is bad  ===
cfquery name=foo
SELECT this FROM that
/cfquery

cfset foo = bar
=  This is bad  ===

Also, make double sure that you're VARing your local variables.

- Steve

-Original Message-
From: Mark Drew [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 11, 2005 3:09 PM
To: CF-Talk
Subject: Re: Help! brain dead?!

Well. its back to private and still no dice! aargh!

I shall have another look.. code blindness

MD

On Apr 11, 2005 8:12 PM, Dave Watts [EMAIL PROTECTED] wrote:
  Hmm.. its set as public .. would that do the trick?
 
 No, public functions can be called by any other code.
 
 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 Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!
 


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202243
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Help! brain dead?!

2005-04-11 Thread Ryan Duckworth
You probably have a query w/ the same name as the function.
This link will explain:
http://jehiah.com/archive/entity-has-incorrect-type
Good luck.

Ryan Duckworth 
Macromedia ColdFusion Certified Professional 
Uhlig Communications 
10983 Granada Lane 
Overland Park, KS 66211 
(913) 754-4272
-Original Message-
From: Mark Drew [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 11, 2005 2:09 PM
To: CF-Talk
Subject: Re: Help! brain dead?!

Well. its back to private and still no dice! aargh!

I shall have another look.. code blindness

MD

On Apr 11, 2005 8:12 PM, Dave Watts [EMAIL PROTECTED] wrote:
  Hmm.. its set as public .. would that do the trick?
 
 No, public functions can be called by any other code.
 
 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 Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!
 
 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202244
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Help! brain dead?!

2005-04-11 Thread Steve Brownlee
Let me append that

=  This is bad  ===
cfquery name=foo
SELECT this FROM that
/cfquery

cfset foo = bar

!--- This is very bad ---
cfoutput query=foo
/cfoutput
=  This is bad  === 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202245
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Help! brain dead?!

2005-04-11 Thread Matthew Small
Did you define a return type?

- Matt Small

-Original Message-
From: Mark Drew [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 11, 2005 2:47 PM
To: CF-Talk
Subject: Re: Help! brain dead?!

Then the error lies somewhere else! g!

I keep getting a :

Entity has incorrect type for being called as a function.  
The symbol you have provided getFeatures is not the name of a function.  

(getFeatures is the function)

And I am calling it as so

cfset stTemp = getFeatures(9002)

so I am being brain dead again

On Apr 11, 2005 7:41 PM, Ben Forta [EMAIL PROTECTED] wrote:
 Sure can
 
 
 -Original Message-
 From: Mark Drew [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 11, 2005 2:39 PM
 To: CF-Talk
 Subject: Help! brain dead?!
 
 if I am within one function in a cfc, can I call another function as so:
 
 cffunction name=dothis
 
   cfset rIhaveTo = doThat()
 
 /cffunction
 
 cffunction name=doThat
 
 /cffunction
 --
 Mark Drew
 
 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202250
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Help! brain dead?!

2005-04-11 Thread Mark Drew
AHA! that was it

Teaches me to code for too long without having a stiff drink!

Thank you!

MD

On Apr 11, 2005 8:14 PM, Ryan Duckworth [EMAIL PROTECTED] wrote:
 You probably have a query w/ the same name as the function.
 This link will explain:
 http://jehiah.com/archive/entity-has-incorrect-type
 Good luck.
 
 Ryan Duckworth
 Macromedia ColdFusion Certified Professional
 Uhlig Communications
 10983 Granada Lane
 Overland Park, KS 66211
 (913) 754-4272
 -Original Message-
 From: Mark Drew [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 11, 2005 2:09 PM
 To: CF-Talk
 Subject: Re: Help! brain dead?!
 
 Well. its back to private and still no dice! aargh!
 
 I shall have another look.. code blindness
 
 MD
 
 On Apr 11, 2005 8:12 PM, Dave Watts [EMAIL PROTECTED] wrote:
   Hmm.. its set as public .. would that do the trick?
 
  No, public functions can be called by any other code.
 
  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 Virginia, or on-site at your location.
  Visit http://training.figleaf.com/ for more information!
 
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202252
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54