Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FoxPro 2.6 Windows running Shellexecute
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00179403
Message ID:
00179433
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform