AndrewMozley
Programmer
I have an application which updates several tables. During development I run the application in different circumstances, and I wish to examine the tables to see that all the fields are correctly updated.
To do this I key in a sequence rather like this
Select 1
USE MY TABLE1
SET FILTER TO <various conditions>
BROWSE NOCAPTIONS NOWAIT
I then adjust the size of the resultant window, adjust the width of columns, reduce the height of the window to just those records which are shown.
I then go on to the next table.
SELECT 2
USE MY TABLE2
SET FILTER TO <various conditions>
BROWSE NOCAPTIONS NOWAIT
. . .and then move the browse window down the screen so that it doesn’t overlap with Mytable2.
I do this for about half a dozen tables.
I would rather like to automate this process, so I put the sequence of commands into a .prg file, and then ran the resultant program. It worked up to a point. The main omission was that each browse window was the default size (so, most of the screen), and I still need to adjust each of the browse windows to fit.
Is there a way of including BROWSE commands in a .prg file, so that the resultant browse windows are sized and positioned as I want them?
Thanks Andrew
To do this I key in a sequence rather like this
Select 1
USE MY TABLE1
SET FILTER TO <various conditions>
BROWSE NOCAPTIONS NOWAIT
I then adjust the size of the resultant window, adjust the width of columns, reduce the height of the window to just those records which are shown.
I then go on to the next table.
SELECT 2
USE MY TABLE2
SET FILTER TO <various conditions>
BROWSE NOCAPTIONS NOWAIT
. . .and then move the browse window down the screen so that it doesn’t overlap with Mytable2.
I do this for about half a dozen tables.
I would rather like to automate this process, so I put the sequence of commands into a .prg file, and then ran the resultant program. It worked up to a point. The main omission was that each browse window was the default size (so, most of the screen), and I still need to adjust each of the browse windows to fit.
Is there a way of including BROWSE commands in a .prg file, so that the resultant browse windows are sized and positioned as I want them?
Thanks Andrew