Futurebasic/Language/Reference/usr handle2btn

Syntax

edit

USR HANDLE2BTN

Description

edit

If ctrlRecHandle& is the handle to the Control Record of a FutureBasic-created button or scrollbar, USR HANDLE2BTN returns the ID number of the button or scrollbar (this is the number that your program assigned to the button or scrollbar in the BUTTON statement or SCROLL BUTTON statement). USR HANDLE2BTN returns the ID number regardless of whether the control is in the current output window or in a different window; if the control is in the current output window, then USR HANDLE2BTN is the inverse of the BUTTON& function. If ctrlRecHandle& is not a valid handle to a Control Record, or it's the handle to a control that was created by other means than a BUTTON statement or a SCROLL BUTTON statement, then the value returned by USR HANDLE2BTN is undefined.

See Also

edit

BUTTON&; USR WPTR2WNUM