home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / xbase / library / clipper / tbwhile / read.me < prev    next >
Encoding:
Text File  |  1990-11-08  |  1.0 KB  |  28 lines

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