FB II Compiler

PG PRO

Debugging

Memory

System

Mathematics

Resources

Disk I/O

Windows

Controls

Menus

Mouse

Keyboard

Text

Fonts

Drawing

Sound

Clipboard

Printing

Communication

ASM

Made with FB

WINDOWS

Know if a window exists


Yes; here's how:-

WINDOW 1
WINDOW 2, "Test"
WINDOW 200
FOR j=1 TO 255' search the FB window record
  windowPtr&=[WNDBLK +j*16]
  LONG IF windowPtr&<>_nil
    PRINT " Window " j " exists: ";
    CALL GETWTITLE(windowPtr&, title$)
    PRINT title$
  END IF
NEXT j
DO: UNTIL FN BUTTON

Robert Purves