Discussions tagged Function

Hi there, I would like to group the same articles on a single line on our invoices... As a matter of fact, these articles are managed with serial numbers (there is consequently a line per Serial Number in the datasource) Of course, each Item has t...
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...
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...
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...
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...
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 ? ...
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...
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"...
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 ...
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...
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...
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...
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 ...
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...
I wanna open the file location at System Tree or Libray Painter. Thanks ...
i get bad runtime function reference powerbuilder 21 in retrieve event   any help ?   ...
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...
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 ...
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. ...
  • Page :
  • 1