Posted: Sat Oct 20, 2001 3:40 pm
Restored from previous forum. Originally posted by richard.
hi,
this example doesn't work - why?
NewList TestList.BasicStructure()
AddElement(TestList())
*He = @TestList()
TestList()\Field2 = 1
AddElement(TestList())
TestList()\Field2 = 2
AddElement(TestList())
TestList()\Field2 = 3
;ChangeCurrentElement(TestList(), *He)
; MessageRequester("Number of elements in the list:", Str(TestList()\Field2), 0)
MessageRequester("Number of elements in the list:", Str(CountList(TestList())), 0)
ResetList(TestList()) ; Reset the list index before the first element.
what i would like to be able to do, is to use a pointer of a linked list in the function ResetList(TestList()) like ResetList(*He)
thanx for yout help
richard
hi,
this example doesn't work - why?
NewList TestList.BasicStructure()
AddElement(TestList())
*He = @TestList()
TestList()\Field2 = 1
AddElement(TestList())
TestList()\Field2 = 2
AddElement(TestList())
TestList()\Field2 = 3
;ChangeCurrentElement(TestList(), *He)
; MessageRequester("Number of elements in the list:", Str(TestList()\Field2), 0)
MessageRequester("Number of elements in the list:", Str(CountList(TestList())), 0)
ResetList(TestList()) ; Reset the list index before the first element.
what i would like to be able to do, is to use a pointer of a linked list in the function ResetList(TestList()) like ResetList(*He)
thanx for yout help
richard