gave it a name that was descriptive but not being used "tax_shipping"
called a method, using same name
called a second method, using same name, which doesn't fly
no actions between that might destroy
searched for the name 'tax_shipping' to make sure I didn't inadvertently use it as a variable, and there were none.
trying not to use more persistent scope, but will experiment.
thanks.
On Mar 3, 2004, at 6:37 AM, John McGowan wrote:
first of all, what scope did you instanciate your object in? I'll assume it was Request.
If it was request, what name was it instantiated as?
Make sure that that scope and name are in the "Object instance variable." part of the Call Method Action
You are calling the second method in the same taf that you instantiated the object, right?
If not, you need to instantiate the tcf in a more persistent scope, (like user) and reference it accordingly in the object instance variable portion of the method call.
And lastly, make sure that somewhere between your first method call and the second method call you're not destroying the object instance by overwriting it with something else, like a string or an array.
An object instance is just like any other variable.
If Request$tax is an object instance it could easily be overwritten by a assigning a number, or an array to that value.
/John
Roland Dumas wrote:
I have created an instance of a tcf object, then called a method from it.
so far, so good.
I call another method from the same class and get:
/ The specified object's handler doesn't support method invocation. tax_shipping
/File: *store.taf * Position: *tax_and_ship2 * Class: *Internal * Main Error Number: *-2
*/ The specified object was not found. tax_shipping
/If I create another instance, the method works, but I thought you only had to create a single instance of the class, whereupon you could call methods from it at least for that request cycle.
what might I be doing wrong?
_______________________________________________________________________ _
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
