iOS Question Index out of bounds on List

John Woodsmall

Active Member
Licensed User
Longtime User
I get index out of bounds (0-22) on:
B4X:
Dim TheList As List, item As String, item_name As String,item_tag As String,x1 As Int
    TheList = File.ReadList (File.DirAssets, MapFileName)  
'on this and larger dims:
Record_Label1.Text = TheList.Get(23)

how do i make the list longer?
 

John Woodsmall

Active Member
Licensed User
Longtime User
hi the list is 31 lines long:
B4X:
Compare People
Speak
Type
Person 1 >>
BirthDate for first person
Ok
BirthDate for second Person
Person 2 >>
Ok
NEXT > >
Tools
Change Language
Testimonials
Sounds (on/off)
Cancel
OK
Date->
Clear
TAP BIRTHDATE BOX ABOVE.When keypad appears below, TAP MICROPHONE ICON.WHEN SIRI APPEARS, SPEAK BIRTHDATE IN THIS FASHION:Example:  If Birthdate May 5th 1991Say:  May 5 1991When birthdate appears in Date Box, TAP “OK”.
Voice Input Screen
. 
Speek Date 1 >
. 
Speek Date 2 >
Next > >
Save 1
Get 1
.
.
.
.

I am just trying to read it in to get the languages values (change the language) into my labels and forms.
I put the '.' in to see if it was failing with a blank line (made no diff).
Is there some kind of limit on list?
does it just read till end of list?

Here it is 31 lines long. But still fails to read the last items.
 
Upvote 0

John Woodsmall

Active Member
Licensed User
Longtime User
Here is the "En.Map" file that am using (there are to be 91 of these for all languages).
I have added dummy lines to see if that made any diff. So far it fails at the end.
 

Attachments

  • En.map.txt
    531 bytes · Views: 289
Upvote 0

John Woodsmall

Active Member
Licensed User
Longtime User
hoho...
if it is a *.txt file it works, but if it is a *.map file it fails.
so i will swich to *.txt names. But why?

by the way when do we get the Siri thing?
 
Upvote 0
Top