>Using ShellExecute I am successfully calling a VFP .EXE that I wrote from another of my VFP EXEs. How do I pass a parameter (2 really) to a VFP EXE using ShellExecute?
Hi Tim,
You pass them as 4th parameter of ShellExecute(). See also
How to pass parameters to VFP EXE FAQ #17861. For example,
cParams = ["A B C" 2]
? ShellExecute(0, "", "H:\temp\test.exe", cParams,"",1)
will pass two parameters into EXE. The first one, string "A B C" and the second one, string "2".
--sb--