Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide command window
Message
From
24/04/2005 08:47:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
24/04/2005 04:33:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01007866
Message ID:
01007885
Views:
12
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform