1. mike S
  2. PowerBuilder
  3. Wednesday, 30 May 2018 21:08 PM UTC

I appears that i can access an array argument value using a computed field.  The values are quoted, and there appears to be a space between them?

Does anyone know the format? 

Also, if i am just running the dw in preview mode, it appears that i can delimit the values using a space or a comma?  


I would like to be able to parse it out in a computed field and display either the first, 2nd, etc. values.

I assume that number/date array arguments work the same exact way?



mike S Accepted Answer Pending Moderation
  1. Thursday, 31 May 2018 15:06 PM UTC
  2. PowerBuilder
  3. # 1

Hi Michael,

thanks for the reply.

I want to know the syntax within the datawindow at runtime so that i can access the array values in computed fields and/or expressions.  


  1. Alfredo Aldama
  2. Friday, 1 June 2018 02:10 AM UTC

The workaround, make it with global function, the arguments for the function ( Array, Index), You will have to build the function.

Expresion (inside datawindows):

Value = gf_Element(Array, Index)


Regards !



  1. Helpful
There are no comments made yet.
Michael Kramer Accepted Answer Pending Moderation
  1. Thursday, 31 May 2018 07:41 AM UTC
  2. PowerBuilder
  3. # 2

Hi Mike,

This answer is about sending arrays as retrieval arguments. Syntax for passing arrays as retrieval arguments is as follows:

string sCurrency[ ]
date dIgnoreDate[ ]
. . .
sCurrency = {'CH', 'DE', 'DK', 'GB'}
dIgnoreDate = {dYesterday, dToday, dNewYearDay, dXmasEve, dXmasDay, dBoxingDay, dNewYearEve}
dw_data.Retrieve(sCurrency , dIgnoreDate)
If on the other hand, you wanted to know how to access the array style retrieval argument in a computed field, please reply.

HTH /Michael

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.