I'm trying to write my first GUI and I would ask you a suggestion.
My GUI will have a "Load button" needed to allow the user to select a file,
the GUI will analyze later on.
I would need the selected file name available even when the "Load button"
Is there any way to write the filename (and few other parameters) to a
"global variable", such that I can read from other sub-functions, too?
in the callback function you can access the calling GUI element with gcbo.
As those elements have an userdata property, you can assign an array or list
to that property and then access this array or list from elsewhere.