Excellent idea. Somehow I got on the track of thinking of a macro, and didn't even think about using a form.
Thanks!
>>I am documenting the process of setting up some metadata for some of my coworkers. To facilitate the process I am putting screen shots of VFP browse windows in the document. I figured out awhile ago that it makes the screens much easier to copy if I define a window in the desktop to browse in so I don't have to clip the picture later.
>>
>>SO, if you follow that this code might make sense:
>>
>>
USE sample.dbf
>>define window test from 1,1 to 10,10 in desktop name lowindow font "ariel" 10 float grow
>>activate window test
>>browse last
>>
>>This works, and is a great improvement over clipping every bitmap.
>>
>>The problem is this isn't
quite good enough for me ... I want a macro or intellisense that defines the window and lets me browse in a keystroke or two.
>>
>>Any great ideas?
>>
>>I attempted a macro and failed miserably.
>
>It seems it would be easier if you wrote a simple form, which will have the table's name passed as a parameter, would USE it in .init(), and in its .show() method it would have
>
>
browse last window (this.name)
>
>Just make the form resizable. Then all you'd have to do is
>
do form mybrowse with "sample"
Carole Shaw
Fred Hutchinson Cancer Research Center
Eagles may soar, but weasels don't get sucked into jet engines.