N nick2210 Member Apr 11, 2010 #1 Hello folks I've been trying to solve this problem for quite some time...it looks like I cannot do without your help. I want my application to sort items of an arraylist by values and add them to other arraylist controls. I get the programm adding as many arraylist controls as needed but I cannot add items to them. I also tried using array of structures instead of arraylist controls,assigning a number to each groop of values. For most folks here this problem must be a breeze please help me:sign0085: Hope the attached codes are undestandable.... Thank you. Attachments arithmetic.sbp arithmetic.sbp 835 bytes · Views: 400 arithmetic1.sbp arithmetic1.sbp 1.3 KB · Views: 420
Hello folks I've been trying to solve this problem for quite some time...it looks like I cannot do without your help. I want my application to sort items of an arraylist by values and add them to other arraylist controls. I get the programm adding as many arraylist controls as needed but I cannot add items to them. I also tried using array of structures instead of arraylist controls,assigning a number to each groop of values. For most folks here this problem must be a breeze please help me:sign0085: Hope the attached codes are undestandable.... Thank you.
Erel B4X founder Staff member Licensed User Longtime User Apr 11, 2010 #2 You should use the Control keyword to refer to the dynamic ArrayLists: Code: Copy Control("al" & alNumber, ArrayList).add(sourceAL.Item(i)) Next version will make it simpler as you will be able to write: Code: Copy ArrayList("al" & alNumber).add(...) and you will have autocomplete for it.
You should use the Control keyword to refer to the dynamic ArrayLists: Code: Copy Control("al" & alNumber, ArrayList).add(sourceAL.Item(i)) Next version will make it simpler as you will be able to write: Code: Copy ArrayList("al" & alNumber).add(...) and you will have autocomplete for it.
N nick2210 Member Apr 11, 2010 #3 Thanx Hello Erel. It proves to be simple after having been explained. I also sorted out the dual "do-loop until" loop. Thanks a bundle.:wav:
Thanx Hello Erel. It proves to be simple after having been explained. I also sorted out the dual "do-loop until" loop. Thanks a bundle.:wav: