Compartir a través de


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])

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.

Return Value

Character or Logical

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

Reference

ACTIVATE WINDOW Command

DEFINE WINDOW Command

WEXIST( ) Function

WONTOP( ) Function

WOUTPUT( ) Function

WVISIBLE( ) Function

Other Resources

Functions

Language Reference (Visual FoxPro)