dekoforce New Member Licensed User Jan 14, 2018 #1 Hi! B4X: Dim prg() As String = Array("-","\","|","/") That piece of code works only in DEBUG-Mode, in RELEASEMode i get this error: java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.lang.String[] I have to use the following code to get it work in RELEASE Mode: B4X: Dim prg(4) As String prg(0) = "-" prg(1) = "\" prg(2) = "|" prg(3) = "/" Is this a known behavior? DeKo
Hi! B4X: Dim prg() As String = Array("-","\","|","/") That piece of code works only in DEBUG-Mode, in RELEASEMode i get this error: java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.lang.String[] I have to use the following code to get it work in RELEASE Mode: B4X: Dim prg(4) As String prg(0) = "-" prg(1) = "\" prg(2) = "|" prg(3) = "/" Is this a known behavior? DeKo
DonManfred Expert Licensed User Longtime User Jan 14, 2018 #2 Try B4X: Dim prg() As String = Array as string("-","\","|","/")
klaus Expert Licensed User Longtime User Jan 14, 2018 #3 Try: B4X: Dim prg() As String = Array As String ("-","\","|","/") or B4X: Dim prg() As String prg = Array As String ("-","\","|","/")
Try: B4X: Dim prg() As String = Array As String ("-","\","|","/") or B4X: Dim prg() As String prg = Array As String ("-","\","|","/")
dekoforce New Member Licensed User Jan 14, 2018 #4 Fantastic! It works. Wow, rapid response. Thanks & nice Sunday