User forums > Help

Open a project with global variable(s)

<< < (2/2)

rickg22:

--- Quote from: thomas on January 01, 2006, 07:57:42 pm ---Oh yes, if you have many references to a variable, then you may be prompted 30 times, too... I know it is annoying, but there is really no easy workaround for that.

During build, this behaviour is necessary because you cannot build without having the variable defined. For project loading, however, it is annoying if you do not want to define the variable at that time.
We would need something like Freeze() and Thaw(), so all missing variables are recorded in a list between those two calls, and the user is prompted exactly once for all of them afterwards. But it is not quite so easy either, because the dialog is not very fit for that purpose - the user won't know he needs to enter several variables (or which ones).

--- End quote ---

How about a GlobalVarsManager (or something), which would be nothing but a map<wxString> ?

balgior:
Hello,

I just wanted to remind "us" of this issue, cause it's been nearly 4 months since first post...
Of course this is nothing of great importance but it's still annoying.
Maybe i could give it a try to find a workaround but i'm afraid i'll be messing up the code  :twisted:... and we wouldn't want that, would we?  :roll:

I'll give it a try, though, to get inspired of a solution!  :)

Navigation

[0] Message Index

[*] Previous page

Go to full version