F Fillmore Member Licensed User Longtime User Jun 26, 2017 #1 Hi, It's certainly a newbe question but... I don't found the answer. I want to scan a QRcode with 3 datas : number, summary and coordinates The format could be : "23;brocken wall;41.2356564;18.45654654" (for example) How can i put number in a variable called "number" Summary in "Summary" and coordinates in a location object. I tried with stringsutil, but no issue founded... Thanks for give me an advice ! Fred
Hi, It's certainly a newbe question but... I don't found the answer. I want to scan a QRcode with 3 datas : number, summary and coordinates The format could be : "23;brocken wall;41.2356564;18.45654654" (for example) How can i put number in a variable called "number" Summary in "Summary" and coordinates in a location object. I tried with stringsutil, but no issue founded... Thanks for give me an advice ! Fred
M Mahares Expert Licensed User Longtime User Jun 26, 2017 #2 freddy: Use RegEx B4X: Dim strVar As String ="23;brocken wall;41.2356564;18.45654654" Dim strArray() As String = Regex.Split(";",strVar) For i=0 To strArray.Length-1 Log(strArray(i)) Next Upvote 0
freddy: Use RegEx B4X: Dim strVar As String ="23;brocken wall;41.2356564;18.45654654" Dim strArray() As String = Regex.Split(";",strVar) For i=0 To strArray.Length-1 Log(strArray(i)) Next
F Fillmore Member Licensed User Longtime User Jun 26, 2017 #3 Whaou it works ! Tnank you for your turnkey solution ! Best regards, Fred Upvote 0