iOS Question Variable name

Claude Brun

Active Member
Licensed User
Longtime User
Hello, I have a table with items xx1, xx2, xx3 ...
I have to fill all these items with the same value. Xx01 = "x", xx02 = "x" ...
but I would like to make a loop from 1 to n, build the name of the variable "xx" & i
But I do not know how to use this variable name to load the value

Thank

PS : excuse my poor english
 

Star-Dust

Expert
Licensed User
Longtime User
I believe you have the wrong part of the forum.
Here we share our software creations.
Questions must be asked in the specific area.
I say no more
 
Upvote 0

Claude Brun

Active Member
Licensed User
Longtime User
Yes I am on a wrong part of the forum
This post is for B4i forum (and I am beegener for apple)

LordZenzo Thank a lot for your benevolent encouragement
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
This post is for B4i forum (and I am beegener for apple)
No, it is not the section dedicated to B4I.
As we have written before is the section dedicated to the sharing of complete developed software.
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
I would use the map

B4X:
Dim M As Map
    
    M.Initialize
    
    For I=1 To 10
        M.Put("xxx" & I, "X")
    Next

    log(M.Get("xxx1"))
 
Upvote 0
Top