I have multiple instances of the form open. Whenever an instance gets focus I gather its window handle. I wish to store this window handle "somewhere" so then I can refer to it as the last instance that had focus.
My question:
where should I store it? In a global variable or a table? It will be a single number that would be replaced each time the new instance gets focus. Also if it is a global variable how can I refer to its value in my vba? (e.g. instance_handle = 2342342; can I just call it then from another place using that name?)
My question:
where should I store it? In a global variable or a table? It will be a single number that would be replaced each time the new instance gets focus. Also if it is a global variable how can I refer to its value in my vba? (e.g. instance_handle = 2342342; can I just call it then from another place using that name?)