Discussions tagged PowerScript (PS)

For what it's worth, I've asked ChatGPT to write PowerBuilder code for a few relatively simple functions.  The results were good, often giving me better ways to approach a problem.  Amazing stuff this AI....
Hello everyone I now have a a.txt file, the content is \u5171\u7528, after using the fileread() function to read, I want to convert \uxxxx into corresponding characters, the following is my attempt li_fhandl=fileopen("C:\work\a.txt") li_fread=file...
Hello everyone! I use the LibraryExport function to export all the objects in pbl. When I want to use the LibraryImport function to import, I see in the document that the LibraryImport function can only import the DataWindow type. Why is this ? Are...
Hi Is there a way how to get list of stack calls into a variable, message or another object? Like Java can do it in exception. What's going on: In my SW I'm catching systemerror, datawindow errors etc and I'm sending these errors through mails. I...
Hi,   How can I get a modern windows 10/11 version of the getfolder dialog box and not the one from 1999 :-)   Thanks Steen...
Hi Is there a direct way how to convert a decimal to a culture invariant string? Standard method string( decimal ) returns the string converted according to the local user's setting. Like in Europe string(1.2) returns "1,2". Or "1'2" etc. What I wa...
I have built a NUP 7 Datawindow SQL Server Select with a TOP 42 custom select statement to always return only 42 results. At first, I removed all of the columns on the freeform styled NUP and added 7 computed items each with a custom BITMAP call to ...
Hi, Does anyone know how I can trigger a "Windows notification" from PowerBuilder (PB 2022 GA) and API call I guess but I don't know how :-)    Thanks  //Steen...
Hi,   Anyone tried this new PB2022 PDF feature : New PDF Builder (beta feature) - - What's New (appeon.com)   Thanks Steen...
Like many of you I need to be able to close a tab page using the standardised close button located on the tab-page (like in any browser) However that feature is NOT available in PB and will not be for the next 1.5 - 2 years (at least) even though it...
Hello,I'm in dire need of help.A grid dwo has PFC sort service enabled.As the user expands a grid column, the pfc_sort service triggers and changes sort statement to the column clicked.The user is not happy. I've tried to catch the pointer (Cross!) ...
Wondering if anyone has a solution to an issue I'm having... I'm getting signature data from a pin pad in data-point format (not a bmp). I can graph this data using a graph datawindow and fill in the gaps to give the appearance of a solid line. The ...
Dear Experts, I want to get the file version and the product version (Major, Minor, Build, Revision) of the application built by PowerBuilder and date and time when it was built. How do I get these informations with PowerScript functions? In Visua...
Dear Experts, using PowerBuilder 2019 R2 Build 2353, I tried to save the content of a DataWindow in a PDF file. Page 1 is generated fine.But from page 2 on it seems that all columns except the last one from pages 1,..., n-1 are printed on page n...
Hi, I'm having some difficulty finding the correct syntax to change the transparency property of the entire datawindow's band (detail band). DW has no groups, just a standard grid datawindow listing excel-like rows. If I do dw_import.Modify("trade...
Dear Experts, I want to call VisualBasic for Application (VBA) macros and functions in Word or Excel documents which I have written myself out of/from PowerScript functions (instead of rewritting them in the PowerScript functions). Is this possible...
Dear Experts, I want to call the VBA Excel functions with optional parameters like Range.PasteSpecial(...) for example in PowerScript functions. I tried the following: OLEObject lole_WS_From // Excel worksheetOLEObject lole_WS_To    // Excel works...
Some years ago I saw the value in having an object that implements dictionary / associative array / map type functionality, mapping string names to arbitrary values, including strings, numbers, dates, and objects. That could be use for passing sets ...
Hello (and Happy New Year), We have a simple function that iterates over the rows of a datawidnow and fill some objects from some of the items in the row. This function looks like the following: public subroutine fill_recipe_components(datawindow a...
I was wondering if anyone has used PowerBuilder (Powerscript) to make calls to the R statistical package.  I have a user that would like a nice front-end GUI to sit on top of some custom R libraries they have written.  I'm not sure if/how this can be...
  • Page :
  • 1