DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Visual FoxPro 7.0

  1. #1
    Larry Dennis Guest

    Visual FoxPro 7.0


    Help...

    What am I doing wrong ?

    I created a simple form with a table and used the wizard to create a
    stand alone .EXE file.

    When I try to run the .EXE file from a shortcut, it briefly appears on
    the screen and then vanishes.

    Any help would be greatly appreciated...


  2. #2
    Jarrett Guest

    Re: Visual FoxPro 7.0



    >I created a simple form with a table and used the wizard to create a
    >stand alone .EXE file.


    >When I try to run the .EXE file from a shortcut, it briefly appears on
    >the screen and then vanishes.


    Issue clear events after you call the form. Or change your form to modal

  3. #3
    Jarrett Guest

    Re: Visual FoxPro 7.0





    >knew that, he was just testing us to make sure we were paying attention.


    Exactly!

  4. #4
    Vince Teachout Guest

    Re: Visual FoxPro 7.0

    On 9 Aug 2002 12:45:02 -0700, "Jarrett" <JcRudisill@Yahoo.com> wrote:

    >>I created a simple form with a table and used the wizard to create a
    >>stand alone .EXE file.

    >
    >>When I try to run the .EXE file from a shortcut, it briefly appears on
    >>the screen and then vanishes.

    >
    > Issue clear events after you call the form. Or change your form to modal


    What Jarrett MEANT to say was "Issue READ events" after you call the form. He
    knew that, he was just testing us to make sure we were paying attention.

    Example:

    * My wonderful program
    DO FORM MyWonderfulForm
    READ EVENTS

    In the destroy method of MyWonderfulForm, you will issue CLEAR EVENTS.

    Or, as Jarret said, make the form modal.





    Ignore munged e-mail address above.
    If necessary to reply via e-mail, please reply to:
    caracal A T caracal D O T net

  5. #5
    Ryan Katri Guest

    Re: Visual FoxPro 7.0


    If your form is not modal, then you'll need to put FoxPro into an event loop
    after displaying it. Use the following:

    READ EVENTS

    To get out of the event loop, issue the following command:

    CLEAR EVENTS

    If you only have one form, then you may want to put this in the Destroy()
    event of the form. Otherwise, you'd probably hang this off a File->Exit
    menu command or such.


    "Larry Dennis" <ldennis@iec-chesapeake.com> wrote:
    >
    >Help...
    >
    >What am I doing wrong ?
    >
    >I created a simple form with a table and used the wizard to create a
    >stand alone .EXE file.
    >
    >When I try to run the .EXE file from a shortcut, it briefly appears on
    >the screen and then vanishes.
    >
    >Any help would be greatly appreciated...
    >



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