Infinity wrote on Dec 18
th, 2008 at 3:48pm:
My dispatcher loves this and now, of course, he's asking for more and better. Please guide me a little bit on how I can make the list of values static between openings and closings of the retrieve spec. GlobalValue, is it? I'm not very practiced with GlobalValues.
To put the list in a GlobalValue called CompanySearchList:
GlobalValue("CompanySearchList", sSearchVals)
To get it out so you can offer it to the user:
sSearchVals = @GlobalValue("CompanySearchList")
Quote:Would the list retain values used by every user? Would it keep growing and growing? If so it could get out of hand. I'd probably need a way to clear it once a day, maybe. Maybe I could create separate static variables for each user to have a list. And a button so they can clear it if it gets too unweildly. Just brainstorming here.
Yes, it is available to all users. Yes, you can use separate GlobalValues for each user (TomSearchList, JaneSearchList). Yes, it will keep growing. If you want to limit it, use @CountStringArray to check if it is getting too large and decide how you want to remove/replace values if it is.