home *** CD-ROM | disk | FTP | other *** search
- This is the first demonstration on Nanforum of a TBrowse with
- a while condition. I have also shown a way to pass an array of
- selected fields from the database to display. I have used Names.dbf
- consisting of Last, First, Addr, City, State, Zip. I only show Last,
- First, City in the TBrowse.
-
- You input the first letter of the last name in the "GET cKey" statement
- so that the while condition is Last = cKey.
-
- The tricks are:
-
- 1. Setting up last and first record so have an easy time
- with the goTop() i.e. Ctrl-PgUp and goBottom() i.e. Ctrl-PgDn keys. The
- refreshAll() on lines 148 and 153 are essential here. But pageUp() on
- line 149 and pageDown() on line 153 are used to reposition to the
- first record on the screen.
-
- 2. Passing and evaluating the block for the SkipWhile().
-
- This program is entered into the Public Domain By James J. Orlowski, M.D.
- on November 5, 1990.
-
- 3. Correction 11/7/90 added goTopBlock() and goBottomBlock after found
- out they would work after I converted nTopNo and nBotNo to PUBLICs
- instead of STATICs.
-
-
-