unfortunately, not a whole lot. I mostly do basic cfm coding. this is
my first real attempt at OOP. if I put the <cfscript> in, then how do
I reference it when I create the <cfoutput> tables?
On Wed, 15 Dec 2004 15:38:41 -0600, Matt Woodward <[EMAIL PROTECTED]> wrote:
> That would go in your CFM file. So let's say you have a CFC called
> MyCFC.cfc. You would create and access it this way in your CFM file:
>
> <cfscript>
> // create an instance of MyCFC called myObject
> myObject = CreateObject("component", "MyCFC");
>
> // now that myObject is created, call some methods on it
> myData = myObject.getSomeData();
> myObject.doSomeStuff();
> </cfscript>
>
> That help?
>
> Matt
>
> On Wed, 15 Dec 2004 14:56:55 -0600, Chris Gomez <[EMAIL PROTECTED]> wrote:
> > I'm lost here. Do I put the cfscript into the .cfc or .cfm file? And,
> > how do I reference the myobj in the cfm file?
> >
> > On Wed, 15 Dec 2004 13:25:58 -0600, Phillip Holmes
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > >what do I do with the cfinvoke and cfinvokeargument?
> > >
> > > Trash those nasty tags. I don't use them. The code I posted replace those
> > > tags. Once you call your object, your methods therein will be available
> > > without calling the object again.
> > >
> > > Example:
> > >
> > > <cfscript>
> > >
> > > myobj = CreateObject('component','mycomponent');
> > > // after your opbject in instantiated, you can call any function contained
> > > in your object without calling the component again.
> > > myobj.mymethod1();
> > > myobj.mymethod2();
> > > myobj.mymethod3();
> > > myobj.mymethod4();
> > >
> > > </cfscript>
> > >
> > > Regards,
> > >
> > > Phil
> > >
> > > ---
> > > [This E-mail has been scanned for viruses.]
> > >
> > > ----------------------------------------------------------
> > > To post, send email to [EMAIL PROTECTED]
> > > To unsubscribe:
> > > http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
> > > To subscribe:
> > > http://www.dfwcfug.org/form_MemberRegistration.cfm
> > >
> > >
> > ----------------------------------------------------------
> > To post, send email to [EMAIL PROTECTED]
> > To unsubscribe:
> > http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
> > To subscribe:
> > http://www.dfwcfug.org/form_MemberRegistration.cfm
> >
> >
>
>
> --
> Matt Woodward
> [EMAIL PROTECTED]
> http://www.mattwoodward.com
> ----------------------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To unsubscribe:
> http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
> To subscribe:
> http://www.dfwcfug.org/form_MemberRegistration.cfm
>
>
----------------------------------------------------------
To post, send email to [EMAIL PROTECTED]
To unsubscribe:
http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe:
http://www.dfwcfug.org/form_MemberRegistration.cfm