>I "borrowed" some of George Tasker's code to allow an old 2.6 windows program to be able to create a merge file for Word, then instance Word with the merge document. Only problem I have now is FoxPro 2.6 is the active window. I know how to get the file handles using VFP, but don't have any experience using foxtools to bring an application to the fore. Anyone (George) have an idea how/if that can be done?
Hi John,
If I understand correctly, the function you'll need is ShowWindow(). Just get the window handle and pass the desired SW_ value. I'd suggest that you use my Is_Run (you did say this was in 2.6 didn't you?) or Is_Run32 function (in the Files/Download Section under Win32 and Other APIs) to get that value. The functions allow you to retrieve the value based on the known portion of a dynamic title bar.
hth,
George
Ubi caritas et amor, deus ibi est