# $EPIC: querywin.txt,v 1.3 2006/08/21 03:05:12 sthalik Exp $
$querywin(<target> <server refnum>)
This function returns the window owning the query target <target>, or “-1” if there are no queries for <target>. An optional server refnum argument may be specified in order to obtain the query window for a target on a particular server.
The window refnum of the window owning <target> or “-1” if none is found.
/window refnum 2 /query =person /eval echo $querywin(=person) /* returns 2 */