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

Just starting out? Need help? Post your questions and find answers here.
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

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

Post 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?
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

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

Post by STARGÅTE »

No answer?

Do I post it again in bugs-forum?
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

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

Post by freak »

So far its only for one list.
quidquid Latine dictum sit altum videtur
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

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

Post by STARGÅTE »

All right, would it be possible to make it lists across?

Feature Requests and Wishlists ?
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
Post Reply