1. Daniel Vivier
  2. PowerBuilder
  3. Wednesday, 14 September 2022 21:18 PM UTC

I'd like to rename the application object in one of my applications.

I found some instructions in a Q&A entry from 2019 that said to open the object, do Save As, save it as the new name, exit PB, change the application object name in the .pbt file, restart PB, and delete the old application object. Sounds sensible.

But when I try that File -> Save As when I have the application object open, I get a window prompting for "Select New Application Library", in which it seems to expect me to select a PBL. I expected it to just prompt for the new object name!

What am I missing, or have the instructions changed for PB2021? Thanks.

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 14 September 2022 21:54 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Dan;

  Yes, newer IDE's like you to save the new App Object in another PBL. I normally just create a temporary PBL and save the new App object there. Then copy the App object from the temporary PBL using the Library Painter to the one I wanted to save it within in the 1st place. Then proceed as you were going to do edit the PBT and point it to the new App object. Then upon App restarting in the IDE, remove the old App object and temporary PBL.

  In method #2, export the App Object source & change it's name there. Import the new App Object into the current App's PBL where you want it. Then proceed like above with the PBT change & deletion of he old App class.

HTH

Regards ... Chris

Comment
  1. Daniel Vivier
  2. Wednesday, 14 September 2022 23:13 PM UTC
Thanks so much Chris. The only hitch with your instructions was before I could move the saved object back to my original main PBL, I had to exit PB and restart it. Otherwise there was an error message.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 14 September 2022 23:20 PM UTC
Hi Dan ... Thanks for the feedback & great news! ;-)
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.