Awesome, thank you!admin wrote:OK, this will work now:
...
Btw, I'll answer to my question above: globals can't be used in captions because they have to be declared as such first. Makes sense.
Awesome, thank you!admin wrote:OK, this will work now:
...
I'd say no - hope I'm exactly right...Marco wrote:Exactly.PeterH wrote:So if I define a global in scripts like "_Initialize", "_somename" or "Main" it should function alike. And the same is for assigning values.
From my POV _Initialize is nothing but a script that's automatically executed before label-selection is shown.
Imo, perm should be used for sharing data between different scripts, i.e. scripts coming/belonging to entirely different sources.
Thus, scripts belonging to a MSR should use globals, while scripts coming from different xys files (or different buttons, or catalog items) should rely on perms.
This would explain also my doubts about perms in script captions: shouldn't globals alone suffice?
Ah yes, that makes perfect sense. You can't see what isn't there yet. Thanks Marco, PeterH and thanks once again Don.Marco wrote:Awesome, thank you!admin wrote:OK, this will work now:
...
Btw, I'll answer to my question above: globals can't be used in captions because they have to be declared as such first. Makes sense.