Linked List in VB ! 2
Category:
MiscellaneousType:
SnippetsDifficulty:
IntermediateAuthor:
AnonymousVersion Compatibility: Visual Basic 6, Visual Basic 5
More information:
'''Please read the introduction before jump in to the code
'''=========================================================
''' **************************
''' Linked List Program in VB
''' By M.Ganesh Sathya Narayanan,
''' Spearhead Technologies,Coimbatore
''' **************************
''' **************************
''' How it Is possible!
''' ===================
''' In C/C++/VC++ Linked List perform through pointers. But VB has
''' no pointers.Then How it is possible!
''' Through OBJECTS . Objects can be refered as a pointer
''' If you set
''' Set obj=New Person
''' Now VB allocates the memory for obj
''' Now obj holds the reference(i.e.Pointers) to the Person(class)
''' **************************
''' ***************************************
''' How to free the allocated memory
''' ================================
''' Just set
''' set obj=Nothing
''' **************************************
''' ****
''' NOTE
''' ****
''' **************************************
''' How to compare two objects
''' **************************************
''' To Compare TWO Objects don't use =(equal operator)
''' Bcos objects having reference to the class(Ex:set obj=New Person)
''' Then what is the solution
''' Just use Is keyword
''' Eg:
''' ***
''' if obj Is Person
'''
''' if obj Is Nothing
'''
''' **************************************
''' **************************************
''' You can download the whole linklist program at
''' http://www.chipware.cjb.net
''' or mail me at tidelganesh@hotmail.com(TIDELGANESH@HOTMAIL.COM)
''' subject as LinkedList
''' I will send as attachment
''' **************************************
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: