1. John Fauss
  2. PowerBuilder
  3. Thursday, 17 May 2018 20:16 PM UTC

Since at least PB version 9 (that's as far back as I can check) PB's Application object has six events, but only four (Close, Idle, Open, & SystemError) are listed in Help documentation. I can find no mention of the ConnectionBegin and ConnectionEnd events, nor can I find any description of the ConnectPrivilege enumerated datatype and the three values (ConnectPrivilege!, ConnectWithAdminPrivilege! & NoConnectPrivilege!) it supports. All six events are accessible in the PowerScript editor. The ConnectPrivilege enumerated datatype is listed in the PB Object Browser.

Can anyone provide some context on how the two "undocumented" events of the Application object can or should be used and how the ConnectPrivilege return value from the ConnectionBegin event should be assigned?

Accepted Answer
Roland Smith Accepted Answer Pending Moderation
  1. Thursday, 17 May 2018 20:24 PM UTC
  2. PowerBuilder
  3. # Permalink

I am pretty sure those are remnants of Distributed PowerBuilder (DPB) which was discontinued with the release PB8. Sybase didn't do a very thorough job of removing it. In fact, the dead code continues to exist in PBVM, even in PB 2017.

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 18 October 2022 20:11 PM UTC
Hi Roland .. Yes, that was for the old & deprecated DPB feature.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 17 May 2018 20:40 PM UTC
  2. PowerBuilder
  3. # 1

Hi John;

  Roland is correct, those events came from DPB! DPB was EOL'ed in PB 8.x to direct PB developers to use EAServer instead. 

They should be removed IMHO (confusing now In PB2017 & higher ).

Regards ... Chris

Comment
  1. Aleš Vojáček
  2. Tuesday, 18 October 2022 15:15 PM UTC
And they are in place in PB2022 still :-)
  1. Helpful
There are no comments made yet.
David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Friday, 18 May 2018 08:31 AM UTC
  2. PowerBuilder
  3. # 2

Absolutely, I remember well using them for distributed PB objects. I was one that was slightly pissed when it was removed.

Well spotted and a great question!

Cheers

David

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.