1. Deva Shanmuga
  2. PowerBuilder
  3. Monday, 30 October 2023 06:34 AM UTC

Hi Experts,

I have two projects, one with PFC (PowerBuilder Foundation Class) and another without PFC. In a scenario where a window is inherited from PFC windows, I need to move only the descendant window into another project without moving the PFC windows. Is there a tool available to do this, or do we need to move it manually?

Regards, and Thanks

Deva S

Bruce Armstrong Accepted Answer Pending Moderation
  1. Monday, 30 October 2023 14:42 PM UTC
  2. PowerBuilder
  3. # 1

There isn't, but it shouldn't be as difficult as suggested.  Export the syntax of the window and remove any references to PFC services from the windows events and functions (if any).  That includes any script added to pfc added events (.e.g, pfc_postopen).  PFC events you haven't coded shouldn't appear  in the source code.  In that case, remove not only the code, but the declarations for the event/function as well.   You'll need to point the "inherited from" to a non-PFC window in the existing app.  Try importing it.  If it errors out, correct what you missed in the exported code and try importing again.  Plenty of people have stripped out individual services (e.g., resize) from PFC so it certainly possible with a little patience.

Comment
  1. Chris Pollach @Appeon
  2. Monday, 30 October 2023 16:25 PM UTC
Hi Bruce;

That would be like ripping the radio out if a Subaru & trying to install it In a Buick with no technical manuals. Not for the "faint of heart" IMHO. :-(

Regards ... Chris
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 30 October 2023 11:20 AM UTC
  2. PowerBuilder
  3. # 2

It's likely to fail, as Chris said, due to your PFC descendant window will likely use PFC "stuff".

I the rare case it doesn't, then you might be able to export the pfc window, manually edit the code and replace the "from w_master, or w_sheet, etc" with window ? After that, import the edited file into your non-pfc application.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 30 October 2023 11:14 AM UTC
  2. PowerBuilder
  3. # 3

Hi Deva;

  No, that would fail as when you move the inherited window from the PFC based App (yes, that would be a manual copy), then it would fail because the PFC ancestors would not be available. Thus editing, compiling & running that window would fail.

Regards ... Chris 

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.