1. Tracy Lamb
  2. PowerBuilder
  3. Tuesday, 26 October 2021 18:33 PM UTC

Hi friends,

I defined a global external function in my application.  Now, I'm creating a new application using most of the same libraries.  The Global Variables all carry over fine, but I'm having to re-create the Global External Function in every new app.  So, where is the Global External Function info saved?  I did define it in one of my core, shared libraries.  But having to re-define it in every new app.

TIA,

~~~Tracy

 

Accepted Answer
John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 26 October 2021 20:31 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi, Tracy - 

Global variables and Global External Function declarations reside in the Application object.

If you Edit Source on an Application object, you'll see them in the "global variables" and "type prototypes" sections, respectively.

Best regards, John

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 26 October 2021 20:36 PM UTC
  2. PowerBuilder
  3. # 1

Hi Tracy;

  GF's are stored with the Application Object - no matter in what Painter that you allocate (define) them. If your App is under Source Code control - make sure that the App Object is checked out (if using the old SCC system) before declaring the GF's. If you are running under SVN you might have to unlock the App Object first. Then once the GF's are declared OK & saved ... make sure that the App Object is checked in ("pushed" in the GIT to the repository). Of course, if you are not using a SCM, then you do not need to do any of the above. The updated App object source should have all the GF (internal or external) declarations.

HTH

Regards ... Chris

Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Tuesday, 26 October 2021 21:18 PM UTC
  2. PowerBuilder
  3. # 2

One easy way to copy them from app A to app B is to do an Edit Source in app A and copy whatever you need.

Now Edit Source of the app B application object and paste the data where required.

Comment
There are no comments made yet.
Tracy Lamb Accepted Answer Pending Moderation
  1. Tuesday, 26 October 2021 23:56 PM UTC
  2. PowerBuilder
  3. # 3

Thank you all for your quick response.

~~~Tracy

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.