--- In [email protected], "entropyreduction" <alancampbelllists+ya...@...> wrote: > > > > --- In [email protected], "Sheri" <sherip99@> wrote: > > > > local test=com.localcopy(appRef) gives an error, ERROR: com.localcopy: > > Wrong number of parameters > > > > com.localcopy is documented with one parameter. > > > > I get the same error giving it two parameters (thought maybe the second one > > might be the name of a new variable) > > No, only one variable (a handle), and my code is wrong. > > > I don't really understand how to use it anyway. The documentation is > > unclear. > > So am I. If passing a handle using named function arguments, > (as opposed to arg(1), etc) explicit use of localcopy not required. See > Bruce's docs for vec plugin. > > > Suppose I have Function MakeObj() which creates an object, and the com > > handle for it is held in local variable appRef. > > > How do I make appRef available to another function, e.g., > > Function UseObj(appRef)? > > > > Or allow it to be used in another function via > > > > local appRef=MakeObj() > > > > in which case MakeObj would have something like quit(appRef) > > Yeah, I think that should work. > > Until I get around to issuing fixed code, just try not using > local copy, pass args via named Function propttype, see what > happens.
Don't know what you mean by propttype. Doing what I outlined above I get: ERROR: com.method: Object handle, isn't when I try to use the handle
