Now: Tutorial for Web and Software Design > Programming > VB > Programming Content
> Sorting Viewer Tutorial - Visual Basic Explorer [Bookmark it]
Sorting Viewer Tutorial - Visual Basic Explorer

Sorting Viewer


A Visual Basic® Tutorial



by Rick Meyer



Copy the Code
Running the Viewer
Winning the Little Battles
Sorting Methods Discussed
Note: to see the pure streamlined BASIC code, and gain the important knowledge of how these methods translate into speed, see my Sort Timer.
To resurrect or not to resurrect - that is the question. The fact is that in the post oopcalyptic era of data and view objects we need only command "go sort yourself" and viola - the miracle manifests. Worse these objects know when to sort as you enter a new person, place, thing, or idea - further obviating the need to program.

Little beknownst to the modern day assembler of packaged components is that somewhere buried deep in the recesses of these objects are the well choosen instructions to order and index data. Indeed these routines have been selected from a number of possible sorting methods to do the job in the most efficient and speedy way possible. They have all been developed and thoroughly tested in those wonderful days BW (before windows).

Why then beat a perfectly dead horse, you say? Well aside from the joy of programming, perhaps you will find an occasion when the objects won't serve your purpose and you must scramble to consult the search oracle for these ancient methods. Chances are you will find them written in a cryptic linear C derivative like JAVA or perhaps FORTRAN or PASCAL, and wonder to yourself if those same sort routines will actually work in BASIC.

Perhaps you have already done a rather exhaustive search for these routines but are still purplexed as to what a shell is, or why a certain sort is labelled quick. Or maybe you wonder what a bubble looks like up close and personal. Further, you may want to know which method is best suited to your application. This visual representation of what is going on behind the scenes should get you started on that path.

In the meantime, there may be more to learn than just general sorting theory. Creating a viewing interface while you are programming certainly aids and enhances the very routines that you are trying to code. Such was the case here while I was writing these sort routines. It is for this reason that I value the Visual® programming products, and believe that they provide more than just facility for the programmer ... They provide vision.

Note in keeping with the theme of a learning tutorial, I have used only the basic controls. Hopefully the viewer will work with all versions of VB 5.0 and 6.0.
Acknowledgements to:
Brian P. Duckworth         Visual Basic Explorer

Took time to review my original code and suggested the horizontal scroll bar for speed control, stepping, and the lower right color key.


Eric D. Burdo                   Erix World of Visual Basic
Burt Abreu                         Visual Basic Explorer

Encouraged me to write this tutorial.



[Bookmark][Print] [Close][To Top]
  • Prev Article-Programming:

  • Next Article-Programming:
  • Related Materias
    Passing an Array to and fr
    Using the For匛ach Stateme
    Executing a VB Program wit
    Crystal Reports Tutorial -
    Creating a Toolbar - Visua
    Random Numbers - Randomize
    File Dialog Box - Tutorial
    Using Office applications 
    VB Tutorials - MultiSelect
    Visual Basic Explorer - Tu
    Topics
    Photoshop Tutorial
     

    Special Effect

      3D Effect
      Photoshop Articles
    Programming Tutorial
     

    C/C++ Tutorial

      Visual Basic
      C# Tutorial
    Database Tutorial
     

    MySQL Tutorial

      MS SQL Tutorial
      Oracle Tutorial
    Graphic Design Tutorial
     

    Coreldraw Tutorial

      Illustrator Tutorial
      3D Graphics Articles
    Webmaster Articles
     

    Domain Service

      Web Hosting
      Site Promotion
    Java Tutorial&Articles
     

    Java Servlets

      JavaEE Tutorial
     

    JavaBeans Tutorial

    XML Tutorial&Articles
     

    XML Style Tutorial

      AJAX Tutorial
      XML Mobile
    Flash Tutorial&Articles
     

    Flash Video

      Action Script
      Flash Articles
    OS Tutorial&Articles
     

    Linux Tutorial

      Symbian Tutorial
      MacOS Tutorial