[quote=53636:@Norman Palardy]Not like you’ve described
What is it you’re trying to accomplish that you have this string ?[/quote]
It’s designed to keep track of Windows that are opened and in what order they got opened so that when a given window is closed, I can force the focus to the proper window. I store all the windows into an array and when they are opened, I assign #1 to a window. When another window gets opened and #1 is still open, then the first window becomes #2 and the window just opened becomes #1. So, if I have 4 windows open, and #1 gets closed (the most recently opened window), then #2 becomes #1, #3 becomes #2, and #4 becomes #3.
The remaining #1 window should then be the “focused” window.
I’ve found that code, for example in a module, or a timer on another window, can cause a specific window to loose focus when that code is run.
When I know which window is #1, and the window’s name is stored in the array, I would like then to just simply use the String value of the window name to set it’s focus.
Otherwise, I have to use a Select Case statement to evaluate if the string value is then, etc etc.
Kind of convoluted it seems but it’s just an idea I came up with, not knowing a better way. It does work … I was just hoping to get around writing a Select Case statement.
Years ago, when I programmed in Clipper, this was possible and it made for some very slick code. If I remember correctly, preceding a string variable with && (or something like that) would use the word contained within the variable as if it was the name of something.
You could do much more than just that with it too.