Re: oject returned by plugin
| Newsgroups | gmane.comp.windows.power-pro |
|---|---|
| Message-ID | <[email protected]> |
I understand you to mean that you want to return an object that you can then use in powerpro scripts with dot syntax, like x=variable.service(optional args) where variable is something your plugin returned. If that is what you want, then please review help section on building a plugin subsection at the bottom called "registering signatures." This is quite involved and I think only one other person attempted it, ie the person who wrote obj etc. After you read the help, feel free to post any questions. The vec plugin and map plugin source code has examples. However, these plugins do not need to use registersig because their signatures are built into powerpro. You will need to use registersig. If you were asking something different, please describe in more detail. Finally, a warning. The implementation of the dot stuff is fragile and will not be changing. I am prettry sure the dot stuff is reliable if the dot is used at the right of the equal sign as above. But although variable.service(optional args) = expr seems to work in test cases and for the people who have tried it for obj plugin, I suspect it has bugs. So if you wanted to use that feature, be aware of this possibility.