Creeping variables
- New
- Issue
- PowerBuilder
-
Konstantin Goldobin
- PowerBuilder
- Friday, 20 February 2026 03:07 PM UTC
Hello,
Something seriously disturbing is happening to my code in PB 2025 build 3711... I have a user object with a bunch of instance variables and its descendant that also has instance variables. At some point (I don't know what caused this) PB copied some of the instance variables of the ancestor into the source code of the descendant between the "global type ..." and "end type" lines. PB does not show them in the editor, but I see them if I open the object via "edit source".
My app started misbehaving and I was able to pin it down to empty instance variables inherited from the ancestor. The variables are initialized when they are declared, e.g. string s = "abc". However, when PB copied them to the descendant, it changed their declarations to string s = "".
It looks as if this copying is limited to those variables that have initial values, but I can't be sure.
Does anybody know what is happening here? Is it a known bug? What can I do?
Best regards,
Konstantin
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.