Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hide command window
Message
De
24/04/2005 08:47:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
24/04/2005 04:33:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7
Database:
Visual FoxPro
Divers
Thread ID:
01007866
Message ID:
01007885
Vues:
11
>hi all,
>i try to hide the command window,via this code under , but when i run my form
>i see it all the time,
>
>IF WEXIST("PROPERTIES")
>   HIDE WINDOW "PROPERTIES"
>ENDIF
>IF WEXIST("COMMAND")
>   HIDE WINDOW "COMMAND"
>ENDIF
>
>thanks.

If the Command Window appears when you run your program, this is a sign that you have not used something you need: a READ EVENTS command. You would usually put this into your main program, after showing the main menu and doing other preparations.

Without the READ EVENTS, if you create an executable, it will open briefly, and close immediately, without waiting for user input.

READ EVENTS tells VFP to wait for user input. Use CLEAR EVENTS in the menu command that is supposed to exit your program.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform