Discussions tagged PowerScript (PS)
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...
Pfc_sort service triggers when users resize grid dwo column
- Resolved
- How-to
- Last updated 3 months ago
- René Ullrich replied 3 months ago
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!) ...
Saving Graph Datawindow to Clipboard distorts image size
- Resolved
- Issue
- Last updated 9 months ago
- Richard Donagrandi replied 9 months ago
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 ...
Version of an Application built by PowerBuilder?
- Resolved
- How-to
- Last updated 11 months ago
- Konrad Kaltenbach replied 10 months ago
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...
DataWindow.SaveAs(ls_path, PDF,...) fails on page 2 et seq.
- Resolved
- Issue
- Last updated 11 months ago
- Konrad Kaltenbach replied 11 months ago
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...
Syntax to modify the detail band transparency by dw.Modify()
- Resolved
- How-to
- Last updated 12 months ago
- Ricardo Colarina replied 12 months ago
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...
How call VBA macros und functions written yourself?
- Resolved
- How-to
- Last updated 1 year ago
- Konrad Kaltenbach replied 1 year ago
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...
How calling VBA Excel functions with optional arguments?
- Resolved
- How-to
- Last updated 1 year ago
- Konrad Kaltenbach replied 1 month ago
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...
Adventures creating a Dictionary / Associative Array in PB
- Misc
- Last updated 1 year ago
- Chris Pollach @Appeon replied 1 year ago
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 ...
How to have a single function works on both a datawindow and a datastore?
- Resolved
- How-to
- Last updated 1 year ago
- Benjamin Gaesslein replied 1 year ago
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...
Match PowerScript function
- Resolved
- Issue
- Last updated 1 year ago
- Nguyen Xuan Huy replied 1 year ago
Hi,
Why regular expression match('','^[0-9, ]*$') = false ?
* (asterisk) Indicates zero or more occurrences
An empty string must meet the condition.
Regards,
Andrey
...
Need Help on How to read Profiling Trace File Programmatically.
- How-to
- Last updated 2 years ago
- René Ullrich replied 1 year ago
Hi Team,
We do have a client requirement to add some functionality in the client application to the Open/Read profiler Trace file.
Does anyone have an idea about How to open and read PBP file content programmatically through PowerBuilder?
Thanks &...
Can I nest structure definitions in a custom object definition and use it globally?
- Resolved
- How-to
- Last updated 2 years ago
- John Fauss replied 2 years ago
Hello,
I have a question about powerscript usage. I would like to define several structures in the same place (eg. same file) and use them outside of the defining file, so I am doing something like the following in the source code n_cst_api_supplies...
Can I pass a function as parameter to another function or object method?
- Resolved
- How-to
- Last updated 2 years ago
- Chris Pollach @Appeon replied 2 years ago
Everything is in the title I guess. ...
How to detect possible Integer overflow
- Advice
- Last updated 2 years ago
- David Peace replied 2 years ago
Hello,
I have a simple problem and we get this bug once/twice in a year but the impact of this bug is always huge. The problem is the following.
When we create a new function in PowerBuilder, it automatically sets the return value as integer, which...
Will powerscript die and be replaced by C#? ...
To calculate difference between two days in Year, Month, Days
- How-to
- Last updated 2 years ago
- Jure Gornjak replied 2 years ago
Hello,
IS there a way to calculate the difference between two dates in years, months, days taking into leap year also into consideration ?
Happiness AlwaysBKR Sivaprakash
...
Hello.
I´m trying to convert a string date coming from user input
the string is for example "05/2015" in the format "mm/yyyy"
and i want to convert to /01/05/2015 in the format "dd//mm/yyyy"
ldcompetencia = date(em_competencia.text)
...
Syntax error on set filter expression
- Resolved
- How-to
- Last updated 2 years ago
- Chris Pollach @Appeon replied 2 years ago
Hello.
I have a set filter expression but the PB is telling that has an syntax error.
What is the right syntax to compare a column to a long variable?
Here is the expression that is returning me an error
parent.dw_listagem_pessoas.SetFilter("est...
- Page :
- 1