thanks for ya help, my mate said there was a canclose statement which did it and i was just wondering if u knew how to do it any ideas?
cheers
: : You're running your program in a DOS box i suppose ...
: :
: : Well, you cannot make it closing when it terminates by some code.
: : These things are handled by Window$. To close automatically your window when your program finishes, do the folloqing :
: :
: : do to the directory where your compiled program (with a .EXE extension) is.
: : Looki at the .PIF file associated with. (eg if your program is MyProg.PAS, go to the dir where MyProg.EXE is located ans serch for MyProg.PIF).
: : Select it, and open contextual menu (with right mouse button) ans select "Properties". look at the options and check "Close after program finishes" or something like that.
: :
: : Hope it helps.
: : DexterMagnigfic at yahoo.fr
:
: Even easier, is to run the program, then while it is running, hit ALT-SPACE and select PROPERTIES. Select the CLOSE ON EXIT check box and hit OK.
:
: Phat Nat
:
: