To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=91693
Issue #|91693
Summary|"If Not r Is Nothing Then" causes error '91' Object va
|riable not set
Component|scripting
Version|OOo 3.0 Beta
Platform|All
URL|
OS/Version|All
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|PATCH
Priority|P3
Subcomponent|code
Assigned to|pflin
Reported by|pflin
------- Additional comments from [EMAIL PROTECTED] Wed Jul 16 06:52:55 +0000
2008 -------
The following macro can reproduce this issue:
Sub test_nothing()
Dim r As Range
'Set r = Range("A1")
'Set r = Nothing
If Not r Is Nothing Then 'causes error
MsgBox "OK"
Else
MsgBox "Fail"
End If
End Sub
But
If Not (r Is Nothing) Then
can works
---------------------------------------------------------------------
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]