If you dont mind, can email us the full CFC. I am assuming, you have CFC xyz which has these 2 functions and then you call these 2 functions from the same xyz CFC based of logic.
<Ajas Mohammed /> iUseDropbox(http://db.tt/63Lvone9) http://ajashadi.blogspot.com We cannot become what we need to be, remaining what we are. No matter what, find a way. Because thats what winners do. You can't improve what you don't measure. Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. On Wed, Jun 27, 2012 at 5:38 PM, jhusum <[email protected]> wrote: > Greetings, > > OK, another strange one... > > I've got two helper functions within a CFC to insert or update a record > into the database. Based on a conditional one of the functions is run. I'm > calling the functions from within the CFC as such: > > <cfif ID eq 0> > <cfset insertRow(field1,field2,field3) /> > <cfelse> > <cfset updateRow(ID,field1) /> > </cfif> > > However when I'm running the code CF is giving me the message: Variable > insertRow is undefined. > > I've tried this as well: > > <cfif ID eq 0> > <cfset temp = insertRow(field1,field2,field3) /> > <cfelse> > <cfset temp = updateRow(ID,field1) /> > </cfif> > > and I'm still getting the same message. > > I'm doing similar function calls in other CFCs with the first syntax above > and everything works like a charm. > > Anyone got any ideas on why CF would be thinking this on is a variable > instead of a function? > > Thanks. > > -- > You received this message because you are subscribed to the "Houston > ColdFusion Users' Group" discussion list. > To unsubscribe, send email to [email protected] > For more options, visit http://groups.google.com/group/houcfug?hl=en > -- You received this message because you are subscribed to the "Houston ColdFusion Users' Group" discussion list. To unsubscribe, send email to [email protected] For more options, visit http://groups.google.com/group/houcfug?hl=en
