https://bugs.freedesktop.org/show_bug.cgi?id=44236

             Bug #: 44236
           Summary: [macros] Overflow with simple Val(Mid(...)) operation
    Classification: Unclassified
           Product: LibreOffice
           Version: LibO 3.5.0 Beta2
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
        AssignedTo: [email protected]
        ReportedBy: [email protected]


This piece of code works fine in 3.4.x ('MsgBox Result' prints 123), but
results Overflow in 3.5.0 Beta2 :

Sub Main
  Dim Result As Integer
  Dim strText as string
  Dim Position As Integer

 strText = "000000000000000123011"
 Position = 16
 Result = Val(Mid(strText,Position,3))
 MsgBox Result
End Sub

Thanks!
Gustavo Pacheco.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to