Android Question redim size

scsjc

Well-Known Member
Licensed User
Longtime User
Hello,
is possible change the size from DIM, (old redim) ???

B4X:
dim flagimag(5) As ImageView
.
.
redim flagimag(10)
 

klaus

Expert
Licensed User
Longtime User
What exactly do you want to do?

You can do this:
B4X:
Dim flagimag(5) As ImageView
'
'
Dim flagimag(10) As ImageView
You can also do:
B4X:
Dim flagimag() As ImageView
flagimag = Array As ImageView(ImageView1, ImageView2, ..., ImageView9)
 
Upvote 0

scsjc

Well-Known Member
Licensed User
Longtime User
What exactly do you want to do?

You can do this:
B4X:
Dim flagimag(5) As ImageView
'
'
Dim flagimag(10) As ImageView
You can also do:
B4X:
Dim flagimag() As ImageView
flagimag = Array As ImageView(ImageView1, ImageView2, ..., ImageView9)


I'm using a CustomListView, and have a list from users conversations...with icons (imageview) or labels (texts)
when i need ADD userconversation inside CustomListView, i need REDIM all objects icons or labels...
now...im try a fix dim with a big size... but i dont know if that use memory ????
 
Upvote 0
Top