1. Aron Cox
  2. Elevate Discussion
  3. Tuesday, 14 December 2021 11:48 AM UTC

At the moment I have had to change my COM wrapped C# code to return JSON strings in order to call it the new way in PowerBuilder 2019 R3. This works well, but extrating the results from the returned JSON is a pain. I feel like I heard someone say there may be improvements to C# integration that would allow the return of complex datatypes coming to SnapDevelop / PowerBuilder in the future at Elevate 2021.

Was I just imagining this? Can anyone elaborate?

I did start to write my own C# class to PowerBuilder structure converter, which worked fairly well up to a point, but I just don't have the time to finish it off, but it did look possible to automatically convert complex C# datatypes to structures, as long as everything in the complex datatypes ends up eventually being a simple datatype.

Thanks smile

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 14 December 2021 17:19 PM UTC
  2. Elevate Discussion
  3. # 1

During the Elevate 2021 keynote, Julie mention generically about this in the roadmap: https://youtu.be/QpSY9qc0Kq4?t=5078

Some of the the ways we are considering to enhance it is to support generic type, delegate, or class as parameters or return values.  

Comment
  1. Aron Cox
  2. Tuesday, 14 December 2021 21:21 PM UTC
Thanks Armeen - I may hold off on converting everything to work with JSON in the hope a better way is found in the future. I tend to return a boolean success and a string error message at the very least on every call, so pretty much everythign would now need to be a JSON string.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Tuesday, 14 December 2021 21:42 PM UTC
You’re very welcome
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.