1. Benjamin Gaesslein
  2. PowerBuilder
  3. Friday, 26 January 2024 13:32 PM UTC

To reproduce:

  1. Open any object painter
  2. Add new function
  3. Type "throw" into Function name field
  4. tab out/click anywhere
  5. PB closes immediately without any warning

Happens in 2019R3, can't check other versions. The same thing happens with "throws". Using edit source to change a function name to "throw" or "throws" errors out with "Syntax error" instead.

With other reserved words you just get a warning, I get the feeling this shouldn't happen.

John Fauss Accepted Answer Pending Moderation
  1. Friday, 26 January 2024 14:16 PM UTC
  2. PowerBuilder
  3. # 1

Hi, Benjamin -

Please examine the PB 2019R3 Help topic titled "reserved words". It clearly calls out which reserved words can be used as function names and which ones cannot.

Best regards, John

Comment
  1. Benjamin Gaesslein
  2. Friday, 26 January 2024 14:36 PM UTC
Hi John,

I'm perfectly fine with not using reserved words as function names but I don't think they should crash the IDE regardless. :)
  1. Helpful
  1. Andreas Mykonios
  2. Friday, 26 January 2024 14:38 PM UTC
You are right John. But the issue with this specific word is that the ide crash. With other reserved words you are notified that you should change name. Putting something that isn't valid should not crash the ide...

Andreas.
  1. Helpful
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Friday, 26 January 2024 13:48 PM UTC
  2. PowerBuilder
  3. # 2

Hi.

I do see that behavior. Only exception is global functions, where the ide doesn't crash. I also tested in PB 2022 R3, and the crash happens even there.

You can open a support case for that (New Bugs | Appeon)...

Andreas.

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.