Futurebasic/Language/Reference/usr wptr2wnum

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Syntax[edit | edit source]

WindowID% = Usr WPtr2WNum(WindowPtr&)

Description[edit | edit source]

If WindowPtr& is the pointer to the window record of a FutureBASIC-created window, Usr WPtr2WNum returns the windowÕs ID number (this is the number that your program assigned to the window in the Window statement). Usr WPtr2WNum is the inverse of the Get Window statement and the Window(_wndPointer) function. If WindowPtr& does not point to a window record, or it points to a window record of a window that was created by other means than the Window statement, the Usr WPtr2WNum function returns zero.

See Also[edit | edit source]

Get Window; Window function