1. Frank Zettanucci
  2. PowerBuilder
  3. Friday, 23 December 2022 18:58 PM UTC

I have a NUP 7 with exactly always 42 rows of data, arranged in NUP freeform so that I have 6 rows of 7 cells (Squares)

I am trying to acquire the NUP cell's .X and .Y values but PB doesnt like this....

LL_YPOS = This.object.thecell[row].Y
LL_XPOS = This.object.thecell[row].X

Technically its thecell_1 through thecell_7

Either way in my mouse event I get something like this:

Application terminated.
Error: Error accessing external object property thecell at line
330 in ue_mouse_over event of object DW_1 of w_1

Application terminated.
Error: Error accessing external object property thecell_1 at line
330 in ue_mouse_over event of object DW_1 of w_1

 How am I supposed to get the .X and .Y values for any one of the 42 possible rows of data in a NUP?

IE: How will i get thecell.X and .Y from the NUP in row 4 column 3's thecell_3 ?

Frank

 

 

Olan Knight Accepted Answer Pending Moderation
  1. Tuesday, 27 December 2022 00:46 AM UTC
  2. PowerBuilder
  3. # 1

Caveat:  this is off the top of my head......

I remember reading somewhere that in an NUP datawindow the different entries are just different columns. If you want the 3rd placehold it's column 3, the 10th one is column 10, and so on. >>> IF <<< this is correct then try getting the column number.

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 27 December 2022 01:07 AM UTC
Hi Olan;

Also, there are two types of newspaper DWO styles. 1) N-Up presentation style and 2) Tabular with N-Up presentation setting. Getting the address of the N-Up row is totally different depending on the N-Up design being used.

Regards... Chris
  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.