Changes the user output window to be the specified window.
Syntax
WHANDLE _WSetPort(WHANDLE wh)
WHANDLE wh; /* Window handle. */
Remarks
_WSetPort( ) returns the handle of the previous user output window.
Note If your routine changes the user output window, be sure to restore the user output window before returning to Visual FoxPro.
For more information on how to create an API library and integrate it with Visual FoxPro, see Chapter 28, Accessing the Visual FoxPro API, in the Programmer's Guide.