advertisement

Find Code  Advanced Search   

Free Newsletters:   
browse free vb code
Submit Code
ASP,  HTML, and XML
Database
Dates  and Math
Files  and Directories
Forms  and Controls
Lists,  Collections, and Arrays
Miscellaneous
Multimedia/Games
Office/VBA
Network/Internet
Registry
Screen/Graphics
String  Manipulation
System/API
Windows  2000/XP
VB.NET/ASP.NET



advertisement
Linked List in VB !

Author: Anonymous
Category: Miscellaneous
Type: Snippets
Difficulty: Intermediate

Version Compatibility:  Visual Basic 5   Visual Basic 6  

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 ''' **************************************

This code has been viewed 60470 times.

Instructions: Copy the declarations and code below and paste directly into your VB project.


Declarations:

Code:

No Text Boxes

Sponsored Links