home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / articles / archives / limanews.exe / EASYSORT.TXT < prev    next >
Text File  |  2006-10-19  |  4KB  |  81 lines

  1. ORIGINALLY PUBLISHED IN LIMA NEWSLETTER APRIL 1992
  2. Software described here is now public domain and
  3. available from the Lima User Group (May 1995)
  4. --------------------------
  5.       "EASY SORT" 
  6.      ASSEMBLY LANGUAGE SORTING OF XB DATA STATEMENTS  
  7.      reviewed by Charles Good 
  8.      Lima Ohio User Group 
  9.       
  10.      Many of us have our favorate extended basic
  11. name/address program, or household inventory program, or
  12. other  "list of things" program.  There are lots of these
  13. floating around in the TI community and the nice thing about
  14. them is that, since they are in XB, the inexperienced user
  15. can modify them to the user's particular requirements.
  16. These programs either load in a separate data file to sort
  17. and display or they contain their data in XB data
  18. statements.  Many "only know how to program in XB" users use
  19. data statements in such software.  The advantage of using
  20. data statements is that the data is loaded into the computer
  21. just as fast as the controlling program.  There is no need
  22. to spend time loading the program and then loading a data
  23. file.   One disadvantage of data statements is the haphazard
  24. unsorted order that the data is usually entered into the
  25. program.  New data, irrespective of alphabetical or
  26. numerical order, is usually added after all the existing
  27. data statements.  Reading all this data into memory and
  28. sorting it in XB takes alot of time. 
  29.       
  30.      Bruce Harrison to the rescue!  Bruce sent me an
  31. evaluation copy of a new commerical offering which sorts
  32. data in data statements FAST.  No assembly language
  33. knowledge is needed, just use the SKELETON program or add
  34. the appropriate CALL LINK to your own software.  SKELETON is
  35. very flexible.  Many different kinds of data can be stored
  36. with a neat menu poping up at the start of SKELETON showing
  37. what the data is (video tapes, names and addresses,
  38. household inventory, etc).  DATA statements can be part of
  39. the program, MERGEd into the program, or loaded in from a
  40. separate disk file. 
  41.       
  42.      Bruce's disk includes a demo name/address program that
  43. contains the addresses of many prominant personalities in
  44. the TI community.  The demo program itself is REALLY NEAT
  45. with quick sorting by first or last name, street address,
  46. city, state, or zip code.  The list of TI personality's
  47. addresses is in and of itself useful to owners of TI home
  48. computers. 
  49.       
  50.      Below are excerpts from the letter from Bruce that
  51. accompanied my evaluation copy of EASY DATA: 
  52.      "Here's our latest commercial offering, a little goodie
  53. we call EASY DATA.  It's for unskilled XB programmers, so
  54. they can do great things with DATA statements and a little
  55. help from Harrison's Assenmbly routines. 
  56.      "The package sells for $6.00 including S&H for US and
  57. Canada customers.  Its main ingredient is a routine called
  58. MSORT, which is supplied buried in the XB program SKELETON.
  59. That XB program also contains a slightly upgraded version of
  60. our Menu Driver (QMENU), so the unskilled programmer can
  61. make nice looking menus from simple DATA statements. 
  62.      "MSORT is a magical routine in many ways.  It performs
  63. sorts by any two fields in the data, as designated in the
  64. LINK statement.  The kind of sort performed (Numeric or
  65. String) is determined by the kind of variable that the field
  66. being sorted reports into.  It does not waste time on the
  67. secondary sort unless the primary sort is a tie. 
  68.      "Three demos are provided.  The one called BIGDEMO
  69. sorts 55 records of six fields each on two criteria in a bit
  70. over three seconds. [Charles Good note: BIGDEMO is the
  71. name/address demo mentioned by me above.]... The time
  72. required to sort is essentially insensitive to the original
  73. ordering of the data.  Lists that are almost in order take
  74. no less time than lists that are completely reversed." 
  75.       
  76.      Harrison Software 
  77.      5705 40th Place 
  78.      Hyattsville MD 20781 
  79.      301-277-3467 
  80.  
  81.