This really depends on what you're doing with your object. If by
"tables" you mean something like you have a CFC with some data in it
and you want to output the data, then you would likely want to have a
"get" method in your CFC to get the data. Let's say I have a CFC that
stores someone's name, and I have a getName() method to return the
name.
<cfoutput>This person's name is #myObject.getName()#.</cfoutput>
That clear it up any? If not you'd probably have to post some code so
we can see better what exactly you're trying to accomplish.
Matt
On Wed, 15 Dec 2004 16:18:15 -0600, Chris Gomez <[EMAIL PROTECTED]> wrote:
> 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
>
>
--
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