i have installed new version on pc and on my mac (macserver-aa)
i have discovery that on emulator some string function doesn't work fine
i have discovery that on emulator some string function doesn't work fine
B4X:
Dim Html As String
Dim Tag As String
Dim Pos As Int
Html = $"a aa aaa<header class="header">b bb bbb<div class="caption">cp = con pedigree</div>c cc ccc"$
Tag = $"<header class="header">"$
Pos = Html.IndexOf(Tag)
Log ("Pos=" & Pos)
Html = Html.SubString(Pos + Tag.Length)
Tag = $"<div class="caption">cp = con pedigree</div>"$
Pos = Html.IndexOf(Tag)
Log ("Pos=" & Pos)
on simulator:
8
-1
on device:
8
8