And if instantiated in any other scope, the called internal method needs to match scope of instantiation. At least that's been my empirical experience.
On Feb 19, 2004, at 8:17 PM, John McGowan wrote:
On this subject, something I noticed with the new version of the editor.
In the t2K editor, when you drag a method from the "Workspace" into another Method of the same TCF, it defaults the Object Instance Variable to "Method$this" (which it should) because this is a very common thing to do in object oriented programming.
However, in the Witango 5.5 editor, it does not default to "Method$this" it defaults to "Request$" Which is very frustrating, to have to remember to do this when you use TCF's a lot.
Anybody else use TCF's and notice the same thing?
I should probably file it as a bug.
/John
Ben Johansen wrote:
Hi,
Excerpt from one of Scotts previous emails:
To re-use a Method inside another Method - which happens to belong to the same TCF:
Note: Re-instantiating the Object is not necessary.
-- Drag the Method into the Method: -- Set your 'Object instance variable' to: Scope: Method Name: this
Or if you want to the <@CALLMETHOD> Metatag:
<@CALLMETHOD OBJECT="method$this" METHOD="someMethod('parameter1','parameter2')">
The variable 'this' automatically refers to the current Class (TCF), and
because you are inside a Method - Method Scope is used.
Just be careful about doing this inside your On_Create Method - because
then
your TCF is going to call itself before it has finished loading the
first
time.
Ben Johansen - http://www.pcforge.com
Authorized Witango & MDaemon Reseller Available for Witango Developement
-----Original Message-----
From: Roland Dumas [mailto:[EMAIL PROTECTED] Sent: Thursday, February 19, 2004 5:42 PM
To: WiTango List
Subject: Witango-Talk: methods calling methods
can one method call another in the same tcf?
______________________________________________________________________ __
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
______________________________________________________________________ __
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
_______________________________________________________________________ _
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
