cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Append current value to the array from UI

I wonder if somebody could help me with my problem. I have added several fields to the layout info and I am reading these from my object (from LAYOUT_REVISION_HISTORY).

Now I would like to have a button to append current values of these fields to some array and display them.

I try to find a way to trigger action of appending current value to the array from UI. Is it possible to trigger some macro from interface or parameter script that would append current value? I want to store this array within gdl object rather than write to file.

Thank you for help,

Maciek
3 Replies 3
Anonymous
Not applicable
Related question: Is there a way in GDL to check if some variable changed its value?
Barry Kelly
Moderator
Maciek wrote:
Related question: Is there a way in GDL to check if some variable changed its value?
if GLOB_MODPAR_NAME = "variable" then ...
You need the quotes around the variable name.

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
Thank you Barry. I have tried that but it returns null after you click UI_Button. So it's hard to tell which button was clicked.

If anybody wondered – I ended up up with attached script (will append first custom field from layout info). Need to make these buttons work nicer but it works.

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!