Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Browse...
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00427361
Message ID:
00427482
Vues:
19
Hi Vlad,

I'll try modal form (I was trying to avoid them, because they disable Menu and Command Window invokation) as a simplest workaround (since TableMaintenance is my application, I can change it whatever I like).

Regarding your second suggestion, I'm not quite sure, I understood:
what is glShutDown and lcMyWindowCaption? In TableMaintenance form's caption changes depending on selected table...


>Hi, Nadya!
>
> Read events in TableMaintenance application have no effect if you already have read events in main application. Just because both run in the instance of the same VFP process. When you want to run TableMaintenance correctly, you will need to make starting form in it as modal form. If you cannot edit that application, you can also try to run it as external windows application, if it is possible for you.
> Check if aplication is still in memory until it runs. When it finished to run - continue your program. You may do all this using API functions:
>
>FindWindow - to check that some window still exists
>Sleep - to wait some time in loop that checks above
>WinExec - to run TableMaintenance as eternal application
>
>Following is sample:
>
>
>IF WinExec(lcPath + "TableMaintenance.EXE", 1) > 31		&& running exe successfully
>  DO WHILE !glShutdown && check for shutdown flag - application should be always closable
>    sleep(100)
>    IF FindWindow(0, @lcMyWindowCaption) = 0 && no more such window
>      EXIT
>    ENDIF
>  ENDDO
>ENDIF
>
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform