Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form flashes briefly (read event prob?)
Message
 
À
09/05/1997 12:29:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00031377
Message ID:
00031587
Vues:
43
>>>>Sorry about the upper(). I took your advice it did something.
>>>>The form no longer gets ignored but the program itself does not continue after the form executes but seems to be hung up.
>>>
>>>you have to issue clear events, after read events to terminate the program.
>>
>>I am supposed to do form getname, then issue read event, then issue clear event,then do menu mymenu? It still seems caught in that infinite loop :(
>
>Basically, VFP app should contain just one common READ EVENTS. Following is a sample of first prg module
>
>*** set environment here
>do mainmenu.mpr
>read events
>*** clean environment here
>
>Your main menu should have 'Quit' option with CLEAR EVENTS command.
>Also remember that modal form will 'stop' app until you close it.

My test prg is this simple but gets hung on the read event( as the trace windows told me) as follows:
clea
do form getname
?'hi'
read event
@10,10 say 'here now'
clea event
in the form the 'ok' button has a command in the code section that says
"release thisform"
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform