LinkedListEx question
Posted: Thu Feb 21, 2008 4:52 pm
i use flype's LinkedListEx the latest beta of pb
after i use ClearListEx i can use AddElementEx ?
becasue i get a crash when i try to do that
example of code that creates a crash i'm sure i'm doing something stupid but i don't understand what
after i use ClearListEx i can use AddElementEx ?
becasue i get a crash when i try to do that
example of code that creates a crash i'm sure i'm doing something stupid but i don't understand what
Code: Select all
Structure TipuriChestionare Extends LINKEDLISTEX
id.l
nume.s
EndStructure
Global *tipuri_list
*tipuri_list = NewListEx(SizeOf(TipuriChestionare))
Procedure creatlist(j.l)
ClearListEx(*tipuri_list)
For i= 1 To j
*chestionar.TipuriChestionare = AddElementEx(*tipuri_list)
*chestionar\id = i
*chestionar\nume = Str(i)
Debug CountListEx(*tipuri_list)
Next i
EndProcedure
creatlist(6)
creatlist(5)