>>>Hello,
>>>
>>>In order to let the user see a browse on a command line form, I do the following:
>>>
DEFINE WINDOW OutputWindow IN ;
>>> WINDOW (THISFORM.NAME) ;
>>> FROM 7, 3 TO 33, 75
>>>ACTIVATE WINDOW OutputWindow
>>>BROWSE WINDOW OutputWindow
>>>With the result that the browse window is always slightly too big, so that I cannot see the scrollbars.
>>>(The command BROWSE IN WINDOW removes the scrollbars altogether.)
>>>I do this on a top level form, so I cannot browse in the VFP screen. Therefore I need to define the window area on the form.
>>>
>>>Is there a way to display the browse window the same size as the defined window, showing the scrollbars?
>>>Thanks for your help in advance.
>>
>>I suggest you use a grid on a form. The browse window is simply too limited, compared to the grid. It should be used by the developer, but not displayed for the end-user, IMO.
>>
>>Hilmar.
>
>
>You are right. But this is a window used by our distributors where they can type in some code to do things behind the scenes, so to say, limited to one-liners.
>We looked into various existing command line forms, but the difficult part remaining is to display the information properly.
>The distributor may open a table and browse it and may correct or change some data outside of the program in a simple way without installing VFP on every machine (this would require thousands of copies).
I am not sure I can solve your BROWSE problem, and I mentioned the grid, just in case you aren't aware of it. But are you aware that in VFP6, SP3 and later, the COMPILE command is enabled for run-time? In previous versions, it was restricted.
Hilmar.
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)