1. John Vanleeuwe
  2. PowerBuilder
  3. Tuesday, 9 January 2024 06:07 AM UTC

Hi guys,

using PB2019 R3 - build 2779

since recently i am no longer able to open PB windows and copy them.

1. i open the window i want to copy, so far so good.

2. take File / Save as

3. i give the window a new name but then the name of the window does not change to the new given name. PB has the same windowname i want to copy from with an asterix * behind eg. w_copy becomes w_copy * instead of the name i gave in the file /save as box : w_copy_duplicate

i don't have this problem with other objects like functions , only with windows.

Any idea's ? I have already reset my pb default layout in the pb.ini

 

TIA

John

John Raghanti Accepted Answer Pending Moderation
  1. Tuesday, 9 January 2024 13:24 PM UTC
  2. PowerBuilder
  3. # 1

The File > Save As menu options creates a copy of an object, it does not rename the current one. You should see in your PBL that you now have 2 windows, w_copy and w_copy_duplicate. Make sure you're saving it to the PBL that you want it in. If you're doing a Save As to a different PBL, that might be causing some of your confusion.

As far as I've ever seen, PB doesn't have a built in method to rename a window. You would need to Save As to the name you want; change all references in other objects from the old name to the name you want; and then finally delete the window object that you don't want anymore.

Hope I understood what you were asking and that this helps!

Comment
  1. Chris Pollach @Appeon
  2. Saturday, 13 January 2024 15:19 PM UTC
Hi John;

What if you just create a new Target / PBL / Window - then does the SaveAs work ok?

Regards ... Chris
  1. Helpful
  1. John Vanleeuwe
  2. Tuesday, 16 January 2024 05:48 AM UTC
Thanks Chris , adding a new target , and file / save as into this pbl does not work either :(



Created a new window inside this new pbl , tried file /save as , no can do :(











  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 16 January 2024 13:35 PM UTC
Hi John;

I think that it's time for a full uninstall / reinstall of the IDE. I think that I've done that maybe twice in my PB career but when you get into that rarity, it might be the only way out of this predicament. BTW: I've never encountered or heard of this one!

Regards .. Chris
  1. Helpful
There are no comments made yet.
Ronnie Po Accepted Answer Pending Moderation
  1. Tuesday, 9 January 2024 17:45 PM UTC
  2. PowerBuilder
  3. # 2

Hi John,

Does your window contain any declared variables referencing itself?

Example:

w_copy lw_this

lw_this = this

This sort of script will cause the Save As... to fail (hopefully with an error message).

 

Comment
  1. John Vanleeuwe
  2. Saturday, 13 January 2024 13:12 PM UTC
i just tried with an empty window , no inheritance , no objects , nothing , still the same problem. Thank !

  1. Helpful
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.