Computer Science Canada

how do you make a window close?

Author:  chibitenshi_03 [ Tue Jan 06, 2004 8:27 pm ]
Post subject:  how do you make a window close?

I want an user to input a number then the window will automatically close but i don't know how to do that.
This is all i have:

window := Window.Open ("position:top;center,graphics:300;200")
put "How thick do you want the line to be?"
get thickness

How do i continue? Confused

Author:  Mazer [ Tue Jan 06, 2004 8:31 pm ]
Post subject: 

first, it should be
code:

[b]var[/b] window := Window.Open ("position:top;center,graphics:300;200")

in case you didn't know. and too close it you do this:
code:

Window.Close (window)
%and just to be safe...
return

Author:  chibitenshi_03 [ Tue Jan 06, 2004 9:36 pm ]
Post subject: 

hehehe...oh yeah...thanks Razz

Author:  shorthair [ Wed Jan 07, 2004 12:04 pm ]
Post subject: 

Mazer when i close hte window i often error out , is the return what stopts that , or what is that for Very Happy


: