Triggering PowerScript events from C# code
- New
- How-to
-
Liron Sabag
- PowerBuilder
- Monday, 10 March 2025 08:32 AM UTC
Hello,
I am using power builder version 2022 R3 build 3391 and need help with Triggering PowerScript events from C# code (Triggering PowerScript events from C# code - - Application Techniques)
From the info in the link above the flow for making it work is not clear to me.
Mostly in step 2 where it is needed to “register the PowerBuilder object where the user event is defined”:
ll_return = lcs_object.RegisterObject("w_dotnettest", w_dotnettest)
I have several questions regarding the flow:
1. What exactly is lcs_object? How is it created?
2. How does lcs_object relate to w_dotnettest?
3. Is it a DotNetObject? And if so, do I have to use the dll importer to get it?
4. If it is indeed tied to a c# dll does it mean only that dll code will be able to call the RegisteredObject.TriggerEvent from c# side?
5. Can one DotNetObject be used to register multiple pb objects?
Also, can I please get a full simple example of this flow?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.