Android Question Array from range

MotoMusher

Active Member
Licensed User
Is there a way in B4A to create an array from a range, specifically letters? I can loop through the integers fine, but need to create arrays of varying lengths using letters. (C,D,E,F,G)

Converting a PHP site, and looking for a way to duplicate the following without typing it out

$arr = array_merge(range(0, 9), range("B", "Z"), range("g", "z"));

Thanks
 

NJDude

Expert
Licensed User
You could create a string with the value "A......Z" and then use SubString2 to get the range, that of course has to be done in a sub.
 
Last edited:
Top