To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=47215
                  Issue #:|47215
                  Summary:|WITH statement does not work correctly
                Component:|framework
                  Version:|680m91
                 Platform:|PC
                      URL:|
               OS/Version:|Windows XP
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|scripting
              Assigned to:|npower
              Reported by:|mjneedles





------- Additional comments from [EMAIL PROTECTED] Mon Apr 11 21:29:31 -0700 
2005 -------
Test this:

Type tUserStruct
   sString1 as String
   nNumber1 as Single
   iNumber2 as Integer
   cNumber3 as Currency
   bTV1 as Boolean
End Type

Sub TestWith
   Dim myStruct as tUserStruct

   With myStruct
      nNumber1 = sqr(3.0)
      print nNumber1
      cNumber3 = 2.23606999 * 2.23606999
      bTV1 = (1 = 1)  ' TRUE
      print bTV1
      print "Tax on " & cNumber3 & " is " & cNumber3 * 0.065
   End With
End Sub

and you'll get a whole bunch of runtime errors (Variable not defined) in the
With block.

The With <Object> statement should (a la VisualBasic and other variants of
Basic), treat the variables referenced inside its block as elements of the
referenced Object.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to