Partager via


WLAST( ) Function

Returns the name of the window that was active prior to the current window or determines whether the specified window was active prior to the current window.

WLAST([WindowName])

Return Values

Character or Logical

Parameters

  • WindowName
    Specifies a window that WLAST( ) evaluates. In Visual FoxPro, you can also specify the name of a toolbar. WLAST( ) returns true (.T.) if the specified window was active prior to the current window; otherwise false (.F.) is returned. False (.F.) is also returned if the window you specify doesn't exist.

    The name of the window that was active prior to the current window is returned if you omit WindowName.

Remarks

WLAST( ) returns the empty string if the window that was active prior to the current window is the Debug, Trace, or Command window. Program execution isn't affected by bringing these windows forward when you are debugging a program that uses WLAST( ).

See Also

ACTIVATE WINDOW | DEFINE WINDOW | WEXIST( ) | WONTOP( ) | WOUTPUT( ) | WVISIBLE( )