Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 9 forms do not run when called
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01499597
Message ID:
01500310
Vues:
45
>Thanks Mr Kuhn,
>
>I hear you and I still do not understand.
>Lets take, for example, a simple application named Example with 2 forms and one dbf in the database.
>the Forms are named Main and Customers.
>The DBF is also named Customers.
>
>I establish the Database named Example.
>I create a table named Customers.
>I create a modal form called Main.
>I create a modal form Customers and I use the Wizard to generate the form.
>On the form Main I create two buttons, Customers and Exit.
>On the click of the Customers button I code "do form Customers"
>On the click of the Exit button I code "thisform.release"
>I compile it and it runs.
>I can add, change delete Customers and exit the appliction.
>Nowhere is there a "Read Events"
>
>What am I doing wrong?
>Why does it not fail because there is no "Read Events"?
>
>I am just trying to understand.
>Thanks in advance.
>Bob

See if this helps..

http://msdn.microsoft.com/en-us/library/aa975719(v=vs.71).aspx

When running in the development environment, you do not need an explicit event loop.

When running as a runtime application, you have to have it. Basically you write a prg that sets up global variables, opens your database, sets any environment settings you need, starts any global menu, and then starts your main form (DO FORM MYMAINFORM). The next statement should be READ EVENTS. Anything after that should be cleanup code that will execute after you issue CLEAR EVENTS from a menu or in code.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform