Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Global variables (Read 1640 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Global variables

Hello. Happy New Year 2019 to all.

I was spending a lot of time making complex conditional formats for album list and tracklist. And finally everything looks as I need. But I thought that there's lack of variables and later I saw that they are there (put, puts, get). But then I have to state variables inside the field code including all the long code. Of course the rules say that it helps, if you want to use code or simple phrase several times. But it could be more convenient to state global variables in options page and then use for example [$get(code1).][$get(code2)] in the needed field and if I want to change that code snippet I will go into variables and change only in one place. This is quite a tempting opportunity.

P.S. Found global variables feature in Columns UI playlist. But that will work only there.

Regards, Mike.
Listen to WMRI...

 

Re: Global variables

Reply #1
There's an older component called foo_exvar (extended variables). Perhaps it's useful.