Hello FlyingTurtle! (BTW, wondering why "Flying Turtle"? I hope you'll share!)
First of all, yes, a table is what you'd use for an Array.
Those "events" like "OnClick" you might have used in other programming environments, don't really have an equivalent in PAC Display and/or groov. You pretty much write or read values. I'm guessing here you'll want to do something like: write a 1 to a variable perhaps called nWriteTableFlag or some such. Then, in your strategy logic, you could see if nWriteTableFlag is 1, if so, set it back to 0 (before you forget) then do the "write data to string," whatever that means to you. Then you'd loop back around to check that flag (after a short/reasonable delay, of course).
What do you mean by "write the data to a string"? Perhaps copying values from something you're showing in the GUI to something that's being logged elsewhere? (Can you tell us the "bigger picture" here?)
BTW, check out this post about using and initializing tables.
I also wrote this "Tables 101" post, but that's mostly for those who've never done any programming before, and it sounds like you have, so it might be a bit basic for your skill level.
In any case, I hope you'll share more about your application (and username!).