>Are you familiar with VBscript? Could I write a VBS that would call the VFP exe and have the VFP exe return a value to the VBS? If so, any thoughts on what that shoudl look like? Thanks again, Larry.
>John
The only way I know of to do this would be to create a COM server using VFP and have the VBScript create the VFP object. Then call a method of the object and depending on the return value of the method, return the appropriate value from the script.
Dim lox
lox = createobject('myvfpcomserver.myclass')
if lox.DoSomeMethod = &H1004 then
return 1
else
return 0
end if
Or something like that.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao