Use of %user_input% vs %variable%user_input%

Yes, I've used that macro a few times myself, but I've always been concerned that something would break and I might not discover the problem immediately. Thus I've always saved the backups. Also, I'm concerned that this is one of those macros that could break when KM gets upgraded.

Lately I've mostly moved to using Dictionaries rather than global variables.

Near the top of the macro I set the dictionary name...

Then throughout the macro when I'm reading or writing...

This technique makes it easy to change the name which I need to do if I'm running multiple copies of a macro that differ only be persistent settings.

These images are from a macro that I used to share this approach: Dialog with Dynamic Popup List.

Hum, I just noticed that here's a case where I'm not using the full %Variable%local_DICT% notation, but for some reason it seems appropriate in this context. Other might disagree. :grinning:

1 Like