-
Returning a variable from VFP6
Is there a way to return or print a variable to dos environment from where
the vfp exe is called?
eg c:\> myprog.exe
Return -> "Hello World" for example.
Thanks,
Paul.
-
Re: Returning a variable from VFP6
Not easily. There may be a 3rd party utility that can do this for you.
The problem (in the past, anyway) is that all .exe's inherit a *copy* of the
environment they run in. Even if you can alter it successfully, it reverts
to it's original, unaltered state when the .exe exits. If you are trying to
chain the results of a vfp run into a batch file, why not have the vfp app
write a flag file to indicate success. Then the batch file can detect the
outcome with if exist...
If this isn't what you're trying to do, post more information, maybe we
can still help.
"Paul Mulloni" <paul@NOSPAM.multibase.com.au> wrote in message
news:3923972c@news.devx.com...
> Is there a way to return or print a variable to dos environment from where
> the vfp exe is called?
> eg c:\> myprog.exe
> Return -> "Hello World" for example.
>
> Thanks,
>
> Paul.
>
>
-
Re: Returning a variable from VFP6
Thanks for that info. I have started down that track of writing the output
to a file then check for the result in that file. This was my backup
stragery.
Thanks again.
Paul.
Lew Schwartz <lew@clsystems.com> wrote in message
news:39253558@news.devx.com...
> Not easily. There may be a 3rd party utility that can do this for you.
> The problem (in the past, anyway) is that all .exe's inherit a *copy* of
the
> environment they run in. Even if you can alter it successfully, it reverts
> to it's original, unaltered state when the .exe exits. If you are trying
to
> chain the results of a vfp run into a batch file, why not have the vfp app
> write a flag file to indicate success. Then the batch file can detect the
> outcome with if exist...
> If this isn't what you're trying to do, post more information, maybe
we
> can still help.
> "Paul Mulloni" <paul@NOSPAM.multibase.com.au> wrote in message
> news:3923972c@news.devx.com...
> > Is there a way to return or print a variable to dos environment from
where
> > the vfp exe is called?
> > eg c:\> myprog.exe
> > Return -> "Hello World" for example.
> >
> > Thanks,
> >
> > Paul.
> >
> >
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks