Discussions tagged PowerScript (PS)
How to have a single function works on both a datawindow and a datastore?
- Resolved
- New
- How-to
- Last updated 5 days ago
- Benjamin Gaesslein replied 3 days 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...
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 8 months ago
- René Ullrich replied 7 months 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 8 months ago
- John Fauss replied 8 months 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 9 months ago
- Chris Pollach @Appeon replied 9 months ago
Everything is in the title I guess. ...
How to detect possible Integer overflow
- Advice
- Last updated 10 months ago
- David Peace replied 10 months 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 1 year ago
- Jure Gornjak replied 1 year 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 1 year ago
- Chris Pollach @Appeon replied 1 year 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...
Access the version information defined in Build Object using PB Script
- How-to
- Last updated 1 year ago
- Chris Pollach @Appeon replied 1 year ago
The version information will display in the Windows property, but how does one access this to display it in a Power Builder window? Using the GetContextService for the ContextInformation returns version information for Power Builder itself and not th...
Hi Appeon Team,
I created an executable of an application. The application uses rich text control which works well when i run the application with power-builder IDE but if i run the executable It says "Failed to create the control. Please confir...
DeleteProfileString?
- Resolved
- How-to
- Last updated 2 years ago
- Chris Pollach @Appeon replied 2 years ago
Hello all
We need to migrate some key names in an App.INI file; removing old terms and adding new ones
Adding is a piece of cake. SetProfileString does the deed
But there is no corresponding DeleteProfileString function to remove dead keys
The s...
- Page :
- 1