Bug 146113 - Basic's IsNull documentation must mention that it also returns True for object variables that don't refer to an object (not initialized or set to Nothing) - at least in non-VBA mode
Summary: Basic's IsNull documentation must mention that it also returns True for objec...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-08 06:47 UTC by Mike Kaganski
Modified: 2022-01-27 12:37 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2021-12-08 06:47:25 UTC
IsNull in LibreOffice Basic, unlike VBA, returns True when an object variable is passed that doesn't refer to a valid object (e.g., just created not yet assigned object, or assigned to Nothing literal). This is a conscious design decision (see tdf#146112), and is widely used [1]. This should be mentioned in the help. (And when bug 146112 is fixed, the VBA mode difference also needs to be reflected in help.)

[1] https://ask.libreoffice.org/t/is-there-are-value-for-a-null-object-in-lobasic/31483/2