Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Creating Java Proxies

$
0
0

I'm trying to create a proxy to functions in a java class that return void. Do I declare the methods as subroutine in the proxy? And how is the alias statement constructed?

 

subroutine method1(string arg1, string arg2) alias for "method1,(java.lang.string, java.lang.String)<and what do I put here for void return?>"

 

Did this all make sense? The example that uses PBNI, the 'converter' app, works fine. But there, the methods return Double, and are declared differently. There are no examples for methods taking String arguments and returning void. Can't change the return type because the class is in a commercial library jar file.


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>