Returning a variable from VFP6


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Returning a variable from VFP6

  1. #1
    Paul Mulloni Guest

    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.



  2. #2
    Lew Schwartz Guest

    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.
    >
    >




  3. #3
    Paul Mulloni Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center