Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning Value from EXE into SQL DTS Packager
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00498703
Message ID:
00498723
Views:
9
This message has been marked as a message which has helped to the initial question of the thread.
>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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform