Updated:
userTypePtr% = KillItem%( list.BList, node.BNode ) from userTypePtr% = KillItem%( list.BList )
Added:
node.BNode = CurrentNode.BNode( list.Blist )
I also changed the example to match the new updated command. Since you can't use Null as a default value, you have to pass it yourself.
changed lines from old example:
If b\id = 4 Then MoveItem(list1,list2)
; delete id 2
If b\id = 2 Then Delete Object.Ball(KillItem(list1))
Wend
Print "list1: (deleted 2, moved 4)" : printlist(list1)
to:
If b\id = 4 Then MoveItem(list1,list2)
; delete id 3 later
If b\id = 3 Then tmp.BNode = CurrentNode(list1)
; delete id 2. this needs to be the last test, because if
; you delete an object you can no longer perform other tests.
If b\id = 2 Then Delete Object.Ball(KillItem(list1,Null))
Wend
Delete Object.Ball(KillItem(list1,tmp))
Print "list1: (deleted 2,3; moved 4)" : printlist(list1)
userTypePtr% = KillItem%( list.BList, node.BNode ) from userTypePtr% = KillItem%( list.BList )
Added:
node.BNode = CurrentNode.BNode( list.Blist )
I also changed the example to match the new updated command. Since you can't use Null as a default value, you have to pass it yourself.
changed lines from old example:
If b\id = 4 Then MoveItem(list1,list2)
; delete id 2
If b\id = 2 Then Delete Object.Ball(KillItem(list1))
Wend
Print "list1: (deleted 2, moved 4)" : printlist(list1)
to:
If b\id = 4 Then MoveItem(list1,list2)
; delete id 3 later
If b\id = 3 Then tmp.BNode = CurrentNode(list1)
; delete id 2. this needs to be the last test, because if
; you delete an object you can no longer perform other tests.
If b\id = 2 Then Delete Object.Ball(KillItem(list1,Null))
Wend
Delete Object.Ball(KillItem(list1,tmp))
Print "list1: (deleted 2,3; moved 4)" : printlist(list1)