--- In [email protected], "Sheri" <sheri...@...> wrote:
> In my usage, unicode arguments and returns do not work with this version.
> Unicode arguments still work with previous version (both carrying com.version
> .72 unfortunately). BTW, I think in addition to having ability to set the
> unicode enablers, we should also have functions to retrieve the current
> settings.
Sigh. Okay.
> Whether enabled or disabled, unicode handles are seen as handle labels (in
> arguments), and returns are also ansi.
>
> e.g., for win.debug(myselect.contents), I expect to see a unicode handle.
> Instead I see the ascii text of the contents.
>
> I am no longer using the handle form for appRef.Search because I had to
> switch to method_typed. Turned out of some of the material that needed to be
> seen as strings was composed entirely of digits.
Yeah, that's the sort of thing method_typed is for. Shame, non-typed forms are
so much neater.
I could add some sort of option triggered by another configuration service
com.params_are_strings(0/1)
or
com.params("string")
com.params() ;; to discontinue
> With previous version: Unicode handles worked in method_typed and
> handle.method (as long as none of the "strings" was all numbers). With
> appRef.Search I got exceptions when "strings" got seen as numbers in
> non-unicode arguments. Same tests with unicode arguments did not get com
> exception errors, but also didn't process properly until I switched to
> method_typed.
>
> I did try your comPluginDemoScriptFileSysObjDotSyntaxForEach.powerpro and it
> did seem to work, so I don't know why my script doesn't work with today's
> version.
Then I have to see a script that doesn't work to diagnose.
> Although Powerpro auto-localcopy does work when sending a com handle to
> another Powerpro function, what I really want is to return a local handle via
> quit(handle). Using v=com.localcopy(appRef), if I quit v, it is the string
> "OK". If I quit(appRef), when I try to use it on the other end I get ERROR:
> com.method: Object handle, isn't. Can just avoid locals.
Sounds like another error in localcopy. Will check later.