Hello,
for some reason this fails in B4i while it worked fine in B4A.
num is for example "0200"
it works fine when using 0,2,0,0 & "," as seperator tho but "" should work aswell.
the log gives
for some reason this fails in B4i while it worked fine in B4A.
B4X:
data=Regex.Split("",num)
num is for example "0200"
it works fine when using 0,2,0,0 & "," as seperator tho but "" should work aswell.
the log gives
B4X:
Error occurred on line: 196 (gameclass)
Error Domain=NSCocoaErrorDomain Code=2048 "The operation couldn’t be completed. (Cocoa error 2048.)" UserInfo=0x145f1b60 {NSInvalidValue=}
Stack Trace: (
CoreFoundation <redacted> + 154
libobjc.A.dylib objc_exception_throw + 38
CoreFoundation <redacted> + 0
CLAUStrophoba +[B4IRegex getPattern::] + 536
CLAUStrophoba -[B4IRegex Split2:::] + 126
CLAUStrophoba -[B4IRegex Split::] + 80
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 282
CLAUStrophoba +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1928
CLAUStrophoba -[B4IShell runMethod:] + 496
CLAUStrophoba -[B4IShell raiseEventImpl:method:args::] + 1846
CLAUStrophoba -[B4IShellBI raiseEvent:event:params:] + 1316
CLAUStrophoba __33-[B4I raiseUIEvent:event:params:]_block_invoke + 74
libdispatch.dylib <redacted> + 10
libdispatch.dylib <redacted> + 22
libdispatch.dylib <redacted> + 254
CoreFoundation <redacted> + 8
CoreFoundation <redacted> + 1300
CoreFoundation CFRunLoopRunSpecific + 522
CoreFoundation CFRunLoopRunInMode + 106
GraphicsServices GSEventRunModal + 138
UIKit UIApplicationMain + 1136
CLAUStrophoba main + 116
libdyld.dylib <redacted> + 2
)