>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)