https://bugs.documentfoundation.org/show_bug.cgi?id=93727

            Bug ID: 93727
           Summary: Date Literal should be supported
           Product: LibreOffice
           Version: 5.0.1.2 release
          Hardware: Other
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: himajin100...@gmail.com

STEPS TO REPRODUCE:

1-a. Run the following code

Sub Main()
    Dim x As Date
    Dim y As Date
    x = #1/2/2013#
    y = 1/2/2013
    Msgbox(x <> y)
End Sub

EXPECTED RESULT:
true

ACTUAL RESULT:
false

=====================
ADDITIONAL INFORMATION:

1-b. Run the following code

REM  *****  BASIC  *****
Sub Main()
    Dim x
    #x = 1
    #If x #Then
    Msgbox(x)
    #End If
End Sub

EXPECTED RESULT:
COMPILE ERROR

ACTUAL RESULT:
1
=========================
'#' is  ignored except for some special cases

http://opengrok.libreoffice.org/xref/core/basic/source/comp/scanner.cxx#243
http://opengrok.libreoffice.org/xref/core/basic/source/comp/scanner.cxx#502

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to