Discussions tagged Script

Hi,   In my x64 refactoring of a ton of code I need to convert a String to LongPTR. How can I do that? I have a handle to a window is stored as string and ny SDK function involving a handle musrt be of tupe LongPTR Using PB2019R3   Thanks    ...
Hello, We have a datawindow control in our application which includes code in the itemfocuschanged event to perform some additional processing when column data is changed in the datawindow. We have added some error checking at the beginning of the e...
Hi all, I'm having trouble viewing documents in my browser if the document name has any spaces.  I'm trying to replace spaces with %20 for the browser... but when I run my code, it replaces space with %2520 ... here's an example: file:///E:/BenchTo...
I'm wondering whether anyone has done any enhancing of their PB applications to allow users to do scripting of the app's functions, and if so, what sort of technologies and techniques they used. Here's an example of a user request we got today. A us...
Hi my great fellow PB-champs :-)   Does anyone know if it is possible to trigger the dropdown menu associated with at "LargeButton" to dropdown from a script (programmatically).  I'm using 2019R3 (I want to do that because the used needs to make ...
Hi all, Thanks for spending your valuable time... I have an issue in the ItemChanged Event.  Consider that I have a dropdown data window having id & genname in the list. The data type of id is numeric and genname is  string. The data column &a...
Challenge: Run PowerScript code stored in a string variable. Limitation: The only object that can be imported into a library is DataWindow. Who can do this?  ...
Can you use C# to write scripts for a window instead of powerscript? If not, can you direct me to any documentation on how to make a call to a REST service from a data window? I'm confident I can create a WebApi with SnapDevelop, but I don't yet kn...
We are using VB script in order to get all the process list of system which was working fine before we tried to use 64 bit executable because vb script is not compatible with 64 bit. The previous code is given below.   OleObject msscint li_rc, istr...
When you install GhostScript, the bin folder has multiple exe files. My question is which one does PB 2017 use? Is it gswin32c.exe like older versions, gswin64c.exe or does it depend on some condition? I am Printing the DataWindow to a PostScri...
I'm converting apps to PB 2017.  When trying to SaveAs PDF, it works in PB 11.5 but not in PB 2017 app (these apps are deployed to RDS and ran as remote app).  Are there any PB runtime DLLs that are required for this that I might be missing?  Do ...
I was going through the Appeon tutorials - "PowerServer Web & Mobile Tutorials" in that "Debugger Configuration Tutorial" mentions to download "Microsoft Script Debugger". I couldn't find it in the Microsoft website. Where can I get "Microsoft Sc...
Is there a preferred version of GPL Ghostscript that should be used for someone who is still using the Distill method with PowerBuilder 2017 R2? ...
Is there a way to switch off the warnings that come up - when closing script   The reason i ask is that I am writing an application that has to access several databases - sqlca - sqlcb and sqlcc So if i am actively connected to lets say the ...
  Hello to all When I'm in the script window the mouse wheel does not scroll. someone knows why thank you GMY ...
In our app we have a DataWindow report with a background image that is saved to PDF. A customer reports their C drive being filled up while running the process that creates the PDF. For this customer, the report has about 850 pages. The process saves...
I have a PB app that was written long ago, and one thing it does is build its (MySQL) database as needed.  To do this, all of the scripts needed to build  the database were added to function objects, one per database object. i.e., there's an "fn_...
Hi All, I'm working with the trial version of PowerBuilder 2017...currently using v 11.5.1. We currently use Ghostscript to SaveAS PDF.  Ghostscript also has functionality of being able to programically combine multiple PDFs into 1 PDF whic...
One of our major reasons to switch to PB2107 was that we can get rid of Ghostscript.  After we made our first tests with NativePDF we are very disappointed: The quality of the PDF created via NativePDF is very bad compared with the one created via Gh...
PBv12.1, build 7055 Oracle 12C   I have a new table that the DBAs created for testing. I can logon as the Catalog Owner = "CHADBA". I am unable to logon as any other user; the error is:        "Please connect as the PowerBuilder ...
  • Page :
  • 1