1. Falguni Patel
  2. PowerBuilder
  3. Thursday, 18 May 2023 08:01 AM UTC

Hi,

I am using Power Builder 2019 and above. The structure which used to have variable type datastore in PB 10.5 no longer exist in current version.

My application codes are originally written in Power Builder 10.5 and now migrated to PB 2019.

Please advise if anyone else has faced the same.

Thanks,

 

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 18 May 2023 09:57 AM UTC
  2. PowerBuilder
  3. # 1

Hi,

Yes, you are right, but you can simply type "datastore" and it should work.

regards.

Comment
  1. Falguni Patel
  2. Friday, 19 May 2023 01:38 AM UTC
Hi,



I have typed the data store type datastore and structure accepted it. However, when I run the program, it gives below error:

error: object array expected on left side assignment at line 13 in clicked event of object pb_ok of pr_w_select_emp.



my line 13 reads below code which was working fine in older version:

istr_passed.dsselected = dw_master.object.data.selected



Appreciate your help on this.
  1. Helpful
  1. Miguel Leeuwe
  2. Friday, 19 May 2023 04:16 AM UTC
That's because data.selected is not simply a datastore. It's a 2 dimensional array of rows and columns.

Try doing:

istr_passed.dsselected.object.data.selected = dw_master.object.data.selected
  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.