This piece of code works fine in 3.4.x ('MsgBox Result' prints 123), but results Overflow in 3.5.0 Beta2 :
Dim Result As Integer
Dim strText as string
Dim Position As Integer
strText = "000000000000000123011"
Position = 16
Result = Val(Mid(strText,Position,3))
confirm on Ubuntu in 350 beta1 (beta2 busy with other task ;-) )
Val returns Double then, Result should be Double. Closed.