active_wl

Gets the active window list.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X      

Syntax

list active_wl()

Description

Always returns the active window list.

Example

You can switch to a new window list by using WL = active_wp (tmp); The following example does a DESCRIBE on the window select without destroying the current window list.
{
 list wl_slave, tmp;
 int pos;
 pos = list_pos(active_wl ());
 wl_save = active_wl();
 query(-1);
 tmp = active_wl();
 active_wl(wl_save);
 list_seek(active_wl(), pos);
 list_close (wl_save);
 return (list_close(tmp));
}