M msfactory Member Licensed User Longtime User Aug 16, 2013 #1 I'm sorry It has posted using the translation software so I can not speak English I do not know how to convert to int array from a string array I want to know is the way! This code, the following error will appear java.lang.NumberFormatException: Invalid double: "" Sub test Dim text As String Dim b(100) As Int Dim a(100) As String text = "_ABC_DEF_GHI_JKL_MNO ・・・・・・・・・・・・・・・・・・・・" a =Regex.Split("_",text) For i = 0 To a.Length -1 b(i) = a(i) Next End Sub
I'm sorry It has posted using the translation software so I can not speak English I do not know how to convert to int array from a string array I want to know is the way! This code, the following error will appear java.lang.NumberFormatException: Invalid double: "" Sub test Dim text As String Dim b(100) As Int Dim a(100) As String text = "_ABC_DEF_GHI_JKL_MNO ・・・・・・・・・・・・・・・・・・・・" a =Regex.Split("_",text) For i = 0 To a.Length -1 b(i) = a(i) Next End Sub
Erel B4X founder Staff member Licensed User Longtime User Aug 18, 2013 #2 The first item is an empty string as this is the item before the first underscore. Code: Copy Dim b As List b.Initialize For Each s As String In Regex.Split("_",text) If IsNumber(s) Then b.Add(s) Next Upvote 0
The first item is an empty string as this is the item before the first underscore. Code: Copy Dim b As List b.Initialize For Each s As String In Regex.Split("_",text) If IsNumber(s) Then b.Add(s) Next
M msfactory Member Licensed User Longtime User Aug 19, 2013 #3 Hello Erel Thank you for answers Anyway, I solved the problem. Software called B4A is great to very easy to use! App variety seems make this software. Best regards Upvote 0
Hello Erel Thank you for answers Anyway, I solved the problem. Software called B4A is great to very easy to use! App variety seems make this software. Best regards