Discussions tagged Function
Passing numeric arguments by readonly
- Resolved
- Advice
- Last updated 1 week ago
- John Fauss replied 1 week ago
Hello Appeon Community,
According to article from https://docs.appeon.com/pb2019/pbug/ch07s02.html#ug12761:
Read-only. When you pass as read-only, the variable's value is available to the function but it is treated as a constant. Read-only provi...
Reference string variables truncated when passed back from stored procedure
- Issue
- Last updated 1 year ago
- Karen Gray replied 1 year ago
HI,
We are using PB 2017 R3 against a postgres database. We are in the process of porting our application from informix to postgres database.
I have an issue in that functions declared with reference variables - after retrieving the data - the s...
Replace spaces with %20 so I can view link in browser
- Resolved
- How-to
- Last updated 1 year ago
- Chris Pollach @Appeon replied 1 year ago
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...
PB2019 R3 2703 - Paste function
- Issue
- Last updated 1 year ago
- Chris Pollach @Appeon replied 1 year ago
Hi,
I've come across a problem when using the Paste command.
The Paste actually works fine, but the return code is -1.
To recreate:
Sample window, RichText control, CB with paste function to the RT control.
Copy an image from Snipping Tool.
Pas...
Custom Function - Return pbl name, datawindow name, last modified
- How-to
- Last updated 1 year ago
- John Fauss replied 1 year ago
is there any existing function or functions that will return the current data window name, the pbl and the last modified date of the data window ? ...
Error using DataStore into user function
- Resolved
- Issue
- Last updated 2 years ago
- John Fauss replied 2 years ago
Hi,
I have found a strange behavior of PB when I use a DataStore into a user function. If I run the projet directly from powerbuilder the function returns the info correctly, but if I run from .EXE it does not work as expected.
I prepared and attac...
GET USERPROFILE FOLDERS
- Resolved
- How-to
- Last updated 2 years ago
- Benjamin Gaesslein replied 2 years ago
Hi,
i'm migrating from PB 12.5 to PB 2019-R2.
In PB 12.5 to get the path of the userprofile folder, I used this syntax declaring an external global function.
FUNCTION Long GetTempPath(Long nBufferLength, REF String lpBuffer) LIBRARY "KERNEL32.DLL"...
Getrow() Function with N-Up Datawindow
- Resolved
- How-to
- Last updated 2 years ago
- Neil Prichard replied 2 years ago
i am trying to use the getrow() function with infomaker version 2017 R2 Build 1769 however because the report i'm developing is requiring the N-Up Datawindow it is throwing the function off , see below. Is there as way i can use this function or any ...
Order of operations when posting a function call
- Resolved
- Advice
- Last updated 3 years ago
- Miguel Leeuwe replied 3 years ago
I just want to confirm my understanding. Suppose I have the following (over-simplified) code:
nvo_myobj objobj.StringValue = "foo"w_mywindow.Post wf_do_something("The value is: " + obj.StringValue)DESTROY obj
Is that OK, because the function argume...
GetContextService Crash on dll Deployment
- Resolved
- Issue
- Last updated 4 years ago
- Chris Pollach @Appeon replied 4 years ago
I have a user function object used to open a web browser that causes a crash when deploying the project but only when the option to create machine code and a .dll library is selected. Deployment with Pcode as well as machine code without a .dll libr...
Rowscopy issue in runtime only
- Issue
- Last updated 5 years ago
- Govinda Lopez @Appeon replied 5 years ago
Hi,
I use a simple Rowscopy() function. When i test it with Debug it does the job (return 1)
When i deploy it in 32 bits... The same statement return -1
Is it a runtime DLL issue?
Thank's.
Marco
I.e. : It's a old system from...
How to create a complier to test the result
- Issue
- Last updated 5 years ago
- Chris Pollach @Appeon replied 5 years ago
I would like to write a number to words function in powerbuilder 2017
I google for some solution but I don't know whether the syntax is correct so I would to run in application.
However, I was new to powerbuilder and have no idea to find a ...
date-function in PB 2017 different to 12.6?
- Issue
- Last updated 5 years ago
- Chris Pollach @Appeon replied 5 years ago
Hi,
I just migrated my project to PB 2017 1681 and run into an error because the behavior of the powerscript function date(string) appears to be changed. In PB 12.6 this:
date('2018-01-53') returns 1900-01-01, what I need.
But in PB ...
Hi Can anyone help
I have a oleobject dll that I need to accesS - I have the following code
OLEObject objDEPHandler
string strError
long numResultCode
integer li_port,li_ret
li_port=1
objDEPHandler = create OLEObj...
Please ADD file location open function at System Tree...
- Issue
- Last updated 5 years ago
- Roland Smith replied 5 years ago
I wanna open the file location at System Tree or Libray Painter.
Thanks
...
bad runtime function reference powerbuilder 21
- Resolved
- Issue
- Last updated 5 years ago
- Marco Meoni replied 5 years ago
i get bad runtime function reference powerbuilder 21
in retrieve event
any help ?
...
Declaring external function call with pointer to structure WITHOUT declaring structure itself
- Resolved
- Issue
- Last updated 5 years ago
- Roland Smith replied 5 years ago
Hi
I want to use a DLL, in which Functions require as parameter and yield pointers to a certain structure.
Let's say I have a library header:
struct StructType
{
int a;
void* p;
};
extern _declspec(dllimport) Str...
Changing Parameter Type in an inherited Function
- Issue
- Last updated 5 years ago
- Roland Smith replied 5 years ago
Hello everyone,
I have a Function in a parent object with an integer parameter, in the child object I have the same function but with overwritten content. Now I changed the parameter to long in the parent object and rebuild the project. After the ...
Not able to see newly created folder in C:\Users\ using CreateDirectory function
- Issue
- Last updated 5 years ago
- Richard Brooks replied 5 years ago
Hi,
I am creating new folder in C:\Users\ through PB code (Using CreateDirectory(C:\Users\ssp)), folder is creating but i am not able to see newly created folder, when i access that folder using path C:\Users\ssp then its opening but its hidden.
...
ANSWERED: How does PrintGetPrinter() work
- Resolved
- Issue
- Last updated 5 years ago
- Julie Jiang @Appeon replied 5 years ago
PB V12.1
Specifically, where does the PB function "PrintGetPrinter()" go to look in order to determine the current printer?
Thanks,
Olan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UPDATE: 24-MAY-2017 @ 2"38 PM CST.
I >>> THINK ...
- Page :
- 1