here is the link to download:
http://www.codemonger.com/Default.asp?Page=Projects
here is the link to the function chart for documentation:
http://www.codemonger.com/Default.asp?Page=Docs
tutorials will come for PB after I take a break.
Place the "VList" PB file in the following directory:
"C:\Program Files\PureBasic\PureLibraries\UserLibraries"
(of course change the directory to suit your computer)
All variables are Longs and return variables are also Longs. You do not have to use pointers at all for creating the list, so your variable does not need * in front of it.
remeber to call VListDelete() when you are done using the list to free the memory being used... if you create more than one list you can set the current list you want to use with VListSet(). Also when you Create a list it sets the newly created list as the current one ... heres some simple sample code to get you started :
Code: Select all
TestList = VListCreate(50) ;allocates 50 units of memory , u can use 0
VListPush(1)
VListPush(2)
VListPush(7)
VListPush(11)
VListPop()
VListDelete()
chunick@codemonger.com