home *** CD-ROM | disk | FTP | other *** search
- *****************************************************************
- * * 09/92 READLVL.PRG *
- *****************************************************************
- * * Author's Name: Jeb Long *
- * * *
- * * Description: *
- * * This program illustrates what happens if you exceed *
- * * the maximum number of 5 read levels. *
- *****************************************************************
- = NESTER()
- WAIT WINDOW
- CLEAR ALL
- RETURN
- *************************************************
- FUNCTION Nester
- Index = RDLEVEL()+1
- Name = CHR(64 + Index)
- set talk off
- R = Index*3
- DEFINE WINDOW (Name) FROM R,10+R TO R+3,30+R
- STORE Index TO &Name
- ACTIVATE WINDOW (Name)
- @ 0,0 SAY "Window:" GET Name
- @ 1,0 SAY "Level: "+ LTRIM(STR(RDLEVEL()))
- READ WHEN Nester()
- RETURN .F.
-