1. Christopher Craft
  2. PowerBuilder
  3. Wednesday, 17 January 2024 23:59 PM UTC

PB 2022 1900

I don't think its possible (I tried) but maybe someone has a way.  Oracle came out with Named Notation quite some time ago and I want to use it in PB.  Something like this:

     FUNCTION Long EndUnload (Long anSourceIdx => SourceIdx) RPCFUNC ALIAS FOR "IcTrx.EndUnload"

Anyone have a trick to support this?

Thanks again,

Chris Craft

Accepted Answer
René Ullrich Accepted Answer Pending Moderation
  1. Thursday, 18 January 2024 07:30 AM UTC
  2. PowerBuilder
  3. # Permalink

I don't know a way to do this with Powerbuilder. But you could write a wrapper function or an overloaded funtion in Oracle. 

Comment
  1. Christopher Craft
  2. Thursday, 18 January 2024 16:16 PM UTC
Thank you René - I will just add the argument in the middle so I don't need to specify all the other 'Default' arguments. Maybe Appeon will add this as a new enhancement one day.
  1. Helpful
  1. Andreas Mykonios
  2. Friday, 19 January 2024 07:08 AM UTC
You can always request for an enhancement. Of course this doesn't mean it will be implemented.

Andreas.
  1. Helpful
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Thursday, 18 January 2024 07:01 AM UTC
  2. PowerBuilder
  3. # 1

Hi.

Creating a synonym is an option?

Andreas.

Comment
  1. René Ullrich
  2. Thursday, 18 January 2024 07:28 AM UTC
Named Notation means to specify the arguments name in function call using "=>". So I think a synonym is not usable here.
  1. Helpful 2
  1. Andreas Mykonios
  2. Thursday, 18 January 2024 07:49 AM UTC
You may be right. I thought the issue was about using ALIAS FOR "IcTrx.EndUnload"...

Andreas.
  1. Helpful
  1. Christopher Craft
  2. Thursday, 18 January 2024 16:13 PM UTC
Correct - I am trying use "=>" in the declaration for PB. This is a great feature because it allows us to specify the pieces we need and not have to populate every argument in its correct position. If we add a new argument to the procedure it typically gets added to the end but if the PB code needs it I am then forced to include every argument in between.
  1. Helpful 1
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.