Problem with String length

mrjaw

Active Member
Licensed User
Longtime User
Hi!

I am getting a weird error about string

PHP:
An error has ocurred in sub:libcode_v0(java line:87)
java.lang.StringIndexOutOfBoundsException
Continue?

This is error is about string is out of range but it just happens when I process a large string. If I use a short string this error doesnt happen.

There is a way to debug a function to check any elements of array like b4windows?

Thks.
 

mrjaw

Active Member
Licensed User
Longtime User
Thks for your cooperation....I answer myself

The problem was that I got a negative value to get a char into string,substring.
My problem is in PHP the negative value is not a problem so i didnt see the value was negative. There is no limitattion with string , I supopse this because with string smaller it worked so fine but now i solve the problem.

So sorry but I am so newbie and really cost to me to B4A. I used to use this for windows and it was so eassy....this is a little more complicated....:sign0027:
 
Upvote 0
Top