1. Michael Kramer
  2. Beta Testing
  3. Friday, 8 November 2019 07:43 AM UTC

I'm testing PB 2019 R2 #2203 vs. PB 2017 R3 #1880.

I create methods on application object and see below similarity + difference

Test Cases

  1. Create a function
    1. Open app object
    2. Create function with return statement
    3. Save app object
  2. Create an event
    1. Open app object
    2. Create event with return statement
    3. Save app object
// Test Case #1
public function integer of_test ();
return 0

// Test Case #2
event type integer ue_test();
return 0

 

Observations

PB Version Create Function Create Event
PB 2017 R3 #1880 Success Success
PB 2019 R2 #2203 Success Failure

The failure is that

  1. The user event disappears from the app object's event list when I save the app object.
  2. When I reopen app object in app painter I cannot find the event anywhere.
  3. When I reopen app object in Edit Source I see the event located at end of source code (misplaced compared to PB 2017 R3)
  4. Also in Edit Source I see no event header in the GLOBAL TYPE definition at top of script (missing compared to PB 2017 R3).

Can anyone repro this behavior?

Perhaps in an build of PB 2019 GA?

Thx /Michael

Accepted Answer
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 8 April 2020 03:00 AM UTC
  2. Beta Testing
  3. # Permalink

Hi Michael,

Good news that Appeon PowerBuilder 2019 R2 GA (build 2323) has been officially released. The issue you reported has been fixed in this release. Please download and install it to verify your reported issue and let us know if any problems.

You can get the installer from our Downloads portal at https://account.appeon.com/download/2019 (login required).

Upgrade Notes:

If you are currently using PowerBuilder/InfoMaker 2019 (build 2082 or 2170) or PowerBuilder/InfoMaker 2019 R2 Beta (build 2279), please directly apply this GA (build 2323) on the top of your current 2019 or 2019 R2 Beta.

We welcome all feedback from you!

 

Regards,

Ken

Comment
  1. Michael Kramer
  2. Wednesday, 8 April 2020 07:12 AM UTC
I agree. Just verified.

This is just one of those many small though important improvements to "core PowerBuilder".

THX!
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 8 November 2019 12:19 PM UTC
  2. Beta Testing
  3. # 1

This error can sometimes also happen in pb 12.6 or previous.

The workaround is to edit the sourcecode and manually add the functiont / event headers:

 

global type genapp from application
string appname = "genapp"
string themepath = "D:\Appeon2019\Shared\PowerBuilder\theme190"
string themename = "Do Not Use Themes"
boolean nativepdfvalid = false
boolean nativepdfincludecustomfont = false
long richtextedittype = 2
long richtexteditversion = 1
string richtexteditkey = ""
string appicon = ""
event type integer ue_test( )
event type integer ue_test2( )
end type
global genapp genapp

event type integer ue_test();return 0
end event

event type integer ue_test2();return 0
end event

 

The green text is what I've added. Now the events show up again in the list. As soon as you define new events or add or delete parameters it blows up again.

 

Comment
  1. Michael Kramer
  2. Friday, 8 November 2019 13:27 PM UTC
Ref Ken Guo's reply Appeon dev team has accepted this as bug so I hope for a fix.

I have seen "HELP, I lost my event script" appear seldom but still enough to scare - and this across I don't recall how many PB versions. Also across painters: Window, UserObject, Application, etc.

It feels like a sometimes uninitialized pointer (speaking good old pre-Windows MS-DOS programming) in 1+ M code lines of C++.

If Appeon manages to find root cause and fix it I will be really, really happy.
  1. Helpful
  1. Miguel Leeuwe
  2. Friday, 8 November 2019 13:32 PM UTC
Oh yes, and then there's this other one that sometimes comes up "... bla bla bla ... is this manipulated exported code ... " or something similar and which is a real pain to solve.
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 8 November 2019 12:09 PM UTC
  2. Beta Testing
  3. # 2

I've done the test a bit different:

- did not define a function

- defined ue_test

- show up correctly in event list

- then define ue_test2

- now none of these events show in the list

 

By the way, I'm on 2019 R2 Beta (2203) for this test

Comment
There are no comments made yet.
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Friday, 8 November 2019 09:43 AM UTC
  2. Beta Testing
  3. # 3

Hi Michael,

Thanks for reporting this problem! It is a bug, the Appeon development team is fixing it.

 

Best Regards,

Ken

 

Comment
  1. Michael Kramer
  2. Friday, 8 November 2019 09:47 AM UTC
Thanks, Ken

That's quick reaction!
  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.
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.