>I'd like to get the position and size of an existing browse window. Could anyone tell me any API which gives me the information?
>
>The browse window is created by a normal BROWSE command without the "name" clause.
First, what Tore said, I concur.
Second, you can use the title clause in the browse command to set the name of the browse window to what you want it; otherwise it should be equal to the alias of the cursor but I remember some cases when it was not. Then you can use wontop() and related functions, plus window related commands to access that window. But still, that syntax is age old, and I don't think anyone is using it nowadays - I don't.
Or, if you don't want to use the name clause, create a blank form. Set its properties the way you like it (caption, sizing, border etc).
xx=createobject("form")
xx.Width=400
xx.Height=344
BROWSE window (xx.Name)
So instead of doing a browse and then getting its position, set the position in advance and use it.