Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automating VFP from Excel
Message
 
To
27/04/2004 16:30:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00898688
Message ID:
00898711
Views:
20
The example you provided works if I take away "private" before each const. Would you happen
to know how to prevent the FoxPro logo and menu from coming up each time the .prg is
run? I suppose I could try running foxFpro exe, .prg that had been made into a exe file.

Thanks so much,
Steve Elster

Sub Macro1()
Const SW_HIDE = 0
Const SW_SHOWNORMAL = 1
Const SW_SHOWMINIMIZED = 2
Const SW_SHOWMAXIMIZED = 3
Const SW_SHOWNOACTIVATE = 4
Const SW_SHOW = 5
Const SW_MINIMIZE = 6
Const SW_SHOWMINNOACTIVE = 7
Const SW_SHOWNA = 8
Const SW_RESTORE = 9

Dim ProcessID As Long
Dim file2run As String

file2run = ("C:\Program Files\Microsoft Visual FoxPro 8\vfp8.exe ThisPrg.prg")
ProcessID = Shell(file2run, CLng(SW_SHOWNORMAL))
End Sub
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform