| Author |
CLEAR (Command Window)
|
|
|
| Hello experts,
I often use the command window to print various information or notation as
my program is running. There are times that I would like to clear the
command window without stopping my program and typing 'Clear' into the
command window. I've tried a few tricks but none of them are working. Any
ideas on how to do this without going to the command window manually?
Thanks,
Jerry Rivenbark
| |
| David Stone 2005-12-01, 8:23 pm |
| Jerry wrote:
> There are times that I would like to clear the
> command window without stopping my program and typing 'Clear' into the
> command window. I've tried a few tricks but none of them are working. Any
> ideas on how to do this without going to the command window manually?
Hi Jerry,
Did you try using the CLEAR command in your code? You could also have a
pushbutton on the form whose on_click action is CLEAR. Example form below.
David
class clearbuttonForm of FORM
with (this)
height = 5.4091
left = 71
top = 0
width = 40
text = ""
endwith
this.PUSHBUTTON1 = new PUSHBUTTON(this)
with (this.PUSHBUTTON1)
onClick = {;? "Stuff..."}
height = 1.0909
left = 2.7143
top = 0.9091
width = 25.4286
text = "Put text into result pane"
endwith
this.PUSHBUTTON2 = new PUSHBUTTON(this)
with (this.PUSHBUTTON2)
onClick = {;clear}
height = 1.0909
left = 11.5714
top = 3
width = 18.2857
text = "Clear result pane"
endwith
endclass
| |
|
| That worked - I was trying similiar things but with the KEYBOARD command,
didn't even think of using 'CLEAR' along.
Thanks,
Jerry
"David Stone" <dlstone@wholegrain.com> wrote in message
news:438FAD1D.BDF693CB@wholegrain.com...
> Jerry wrote:
>
>
> Hi Jerry,
>
> Did you try using the CLEAR command in your code? You could also have a
> pushbutton on the form whose on_click action is CLEAR. Example form below.
>
> David
>
>
> class clearbuttonForm of FORM
> with (this)
> height = 5.4091
> left = 71
> top = 0
> width = 40
> text = ""
> endwith
>
> this.PUSHBUTTON1 = new PUSHBUTTON(this)
> with (this.PUSHBUTTON1)
> onClick = {;? "Stuff..."}
> height = 1.0909
> left = 2.7143
> top = 0.9091
> width = 25.4286
> text = "Put text into result pane"
> endwith
>
> this.PUSHBUTTON2 = new PUSHBUTTON(this)
> with (this.PUSHBUTTON2)
> onClick = {;clear}
> height = 1.0909
> left = 11.5714
> top = 3
> width = 18.2857
> text = "Clear result pane"
> endwith
>
> endclass
>
>
>
| |
| David Stone 2005-12-02, 3:23 am |
| Jerry wrote:
> That worked - I was trying similiar things but with the KEYBOARD command,
> didn't even think of using 'CLEAR' along.
Part of the beauty of the current dBASE is that a lot of the really primeval
(dBASE I) stuff is still right there for us...;-)
David
| |
| David Kerber 2005-12-02, 7:23 am |
| In article <438FD57A.333020A0@wholegrain.com>, dlstone@wholegrain.com
says...
> Jerry wrote:
>
>
> Part of the beauty of the current dBASE is that a lot of the really primeval
> (dBASE I) stuff is still right there for us...;-)
It's like a horseshoe crab: it was so well designed the first time that
it will live for 400 million years <Grin>.
--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
|
|
|
|