>>I need to run multiple instances for a 2.6 program and promote one of the background instances to the foreground. Does foxtools have something like setforground(handel)?
>
>If this is in Windows you can use (at least in VFP5):-
>
>declare long SetForegroundWindow in "user32" long hWnd
>
>and call
>
>SetForgroundWindow(hWndThis)
It's 2.6, so the DECLARE notation isn't available, and the obvious problems of knowing the hWnd of each instance, and more importantly, the lack of a 16 bit implementation of SetForegroundWindow (FPW can call Win16 DLLs without a problem, but the API call here is made via a Win32 DLL)
He may be able to get at Win16 equivalents via FoxTools' REGFN() and CallFN() commands, but the problem still remains of how to identify the hWnd of each running instance.