I have FoxPro 2.0.

I need to bring up the command window via code. When I run this .PRG file
the command window is not present. If I hit escape, the browse window
disapears and up comes the command window. I'd like both to be present when
the code finishes.

FILENAME = 'J:\ML\WPS\W23301.dbf'
RESTORE MACRO FROM P:\SOFT\ABSSHELL\FOXMACR.FKY
USE &FILENAME
COUNT
BROW

Regards
Dale Jones

Re: Programmatically bring up the command window by Dan

Dan
Tue Jun 28 14:03:51 CDT 2005

The command window is not available when code is running.

Change your code to use BROW NOWAIT. (I *think* that clause was available
way back in 2.0. <g>)

Dan

Dale wrote:
> I have FoxPro 2.0.
>
> I need to bring up the command window via code. When I run this .PRG
> file the command window is not present. If I hit escape, the browse
> window disapears and up comes the command window. I'd like both to
> be present when the code finishes.
>
> FILENAME = 'J:\ML\WPS\W23301.dbf'
> RESTORE MACRO FROM P:\SOFT\ABSSHELL\FOXMACR.FKY
> USE &FILENAME
> COUNT
> BROW
>
> Regards
> Dale Jones



Re: Programmatically bring up the command window by Dale

Dale
Tue Jun 28 14:21:58 CDT 2005

Thanx dor replying Dan

BROW will be the very last part of the code. After the file is displayed,
the user will enter all following commands.

So why did that work over just plain BROW?

Regards
Dale

"Dan Freeman" <spam@microsoft.com> wrote in message
news:uxLhgQBfFHA.1412@TK2MSFTNGP09.phx.gbl...
> The command window is not available when code is running.
>
> Change your code to use BROW NOWAIT. (I *think* that clause was available
> way back in 2.0. <g>)
>
> Dan
>
> Dale wrote:
>> I have FoxPro 2.0.
>>
>> I need to bring up the command window via code. When I run this .PRG
>> file the command window is not present. If I hit escape, the browse
>> window disapears and up comes the command window. I'd like both to
>> be present when the code finishes.
>>
>> FILENAME = 'J:\ML\WPS\W23301.dbf'
>> RESTORE MACRO FROM P:\SOFT\ABSSHELL\FOXMACR.FKY
>> USE &FILENAME
>> COUNT
>> BROW
>>
>> Regards
>> Dale Jones
>
>



Re: Programmatically bring up the command window by Olaf

Olaf
Tue Jun 28 14:32:20 CDT 2005

> So why did that work over just plain BROW?
Because NOWAIT means not to wait???

BROWSE NOWAIT:
Display the selected workarea in a browse window
and don't wait for the closing of the browse windows
by a user...

Or what isn't clear to you?

Bye, Olaf.



Re: Programmatically bring up the command window by Dan

Dan
Tue Jun 28 14:38:33 CDT 2005

BROWSE is a wait state without the NOWAIT clause.

Dan

Dale wrote:
> Thanx dor replying Dan
>
> BROW will be the very last part of the code. After the file is
> displayed, the user will enter all following commands.
>
> So why did that work over just plain BROW?
>
> Regards
> Dale
>
> "Dan Freeman" <spam@microsoft.com> wrote in message
> news:uxLhgQBfFHA.1412@TK2MSFTNGP09.phx.gbl...
>> The command window is not available when code is running.
>>
>> Change your code to use BROW NOWAIT. (I *think* that clause was
>> available way back in 2.0. <g>)
>>
>> Dan
>>
>> Dale wrote:
>>> I have FoxPro 2.0.
>>>
>>> I need to bring up the command window via code. When I run this
>>> .PRG file the command window is not present. If I hit escape, the
>>> browse window disapears and up comes the command window. I'd like
>>> both to be present when the code finishes.
>>>
>>> FILENAME = 'J:\ML\WPS\W23301.dbf'
>>> RESTORE MACRO FROM P:\SOFT\ABSSHELL\FOXMACR.FKY
>>> USE &FILENAME
>>> COUNT
>>> BROW
>>>
>>> Regards
>>> Dale Jones