- Mark Jones
- PowerBuilder
- Thursday, 27 July 2023 05:10 PM UTC
I am using the Amyuni ActiveX controls for PDF processing. A couple of their methods have output parameters.
System.Boolean SearchTextEx(System.Int16 Start, System.String Text, [out] System.Int32 Page, [out] System.Double xPos, [out] System.Double yPos)
Here is my code that does not work...
lb_found=lole_cdintfex.SearchTextEx(-1 , ls_search, li_found_page, ldbl_found_xpos, ldbl_found_ypos)
This function searches for text and returns the page and position in variables li_found_page, ldbl_found_xpos and ldbl_found_ypos.
It appears that these variables need to be passed by reference, right now with my current syntax I end up with 0 returned in all these values when I find a string. Is there a way to pass variables by reference in an ActiveX method? Is there a workaround e.g using AutomationNativePointers or something like this or possibly a way of overloading the function call by creating my OleObject user object?
Thanks,
Mark
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.