polygrid data

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rjd
Posts: 16
Joined: Thu Aug 29, 2013 11:29 am

polygrid data

Post by rjd » Sat Jul 09, 2022 3:11 pm

Hi - anyone know how to retrieve the line or cell data in a polygrid? I thought probably 'put the text of line pRowNumber' would work off of cellDoubleClick but no joy.

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: polygrid data

Post by Klaus » Sat Jul 09, 2022 3:50 pm

If I remember right, this should be similar to the syntax for the Datagrid object.
So I guess this should work:

Code: Select all

...
put line pRowNumber of the PGtext of widget "your polygrid here"
...

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: polygrid data

Post by Klaus » Sat Jul 09, 2022 6:58 pm

Found an old demo of the PolyGrid from "FerrusLogic" and can confirm that my script above works as expected!

rjd
Posts: 16
Joined: Thu Aug 29, 2013 11:29 am

Re: polygrid data

Post by rjd » Sun Jul 10, 2022 1:04 pm

Thanks Klaus! Works beautifully :D

Post Reply

Return to “Talking LiveCode”