Page 1 of 1

PB 4.60 B1 - why MoveElement() isn't across lists?

Posted: Mon Apr 04, 2011 1:30 am
by STARGÅTE

Code: Select all

NewList A.s()
NewList B.s()
  
For i = 0 To 5
  AddElement(A()) : A() = "A "+Str(i)
  AddElement(B()) : B() = "B "+Str(i)
Next
  
SelectElement(A(), 3) 
SelectElement(B(), 1) 

MoveElement(A(), #PB_List_After, @B())

Debug "ListSize A: "+Str(ListSize(A()))
ForEach A()
  Debug A()
Next
Debug ""
Debug "ListSize B: "+Str(ListSize(B()))
ForEach B()
  Debug B()
Next
after move, the ListSize will not be changed.
is this a bug, or not allowed?

if it is not allowed, why not?
i think it is important to also move items between lists

can you add a optional parameter for the list of the *RelativeElement, like SplitList and MergeLists?

Re: PB 4.60 B1 - why MoveElement() isn't across lists?

Posted: Sun Apr 10, 2011 12:26 pm
by STARGÅTE
No answer?

Do I post it again in bugs-forum?

Re: PB 4.60 B1 - why MoveElement() isn't across lists?

Posted: Sun Apr 10, 2011 7:58 pm
by freak
So far its only for one list.

Re: PB 4.60 B1 - why MoveElement() isn't across lists?

Posted: Sun Apr 10, 2011 8:30 pm
by STARGÅTE
All right, would it be possible to make it lists across?

Feature Requests and Wishlists ?