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

--- Comment #2 from Noel Power <[email protected]> ---
(In reply to Joel Madero from comment #1)
> @Noel - I think you would be most qualified to answer this one - not sure if
> anyone in QA would be comfortable doing so.
> 
iiuc then this error is correct and matches what MS vba does/says (note: I
don't currently have access to any MS Office versions to check)

There seems multiple issues described here, I wont bother trying to decipher
them, if there are separate issues then there should be separate bugs. My
response here is for the issue in the subject only, e.g. "Object Variable Not
Set" error when member not defined for Variant

Again (iirc) this is the standard VB error in this scenario, the first example
above assigns a 'basic type' e.g an 'Integer'  and a Variant containing an
Integer respectively. That type (e.g. Integer or Variant) is passed to the
'TestVariant1' subroutine as a 'Variant' type, note: Arg1 has no type so it
will be treated as a Variant. Also Note: a Variant is an opaque type, it's a
sortof container for 'any' type you assign to it, when you try and call a
method on a Variant it 'knows' you are trying to call on the 'Object' contained
by the 'Variant' In the example above the 'Object' assocated with that
'Variant' type is 'NULL' as the real types passed are basically primitive
types. The error reflects 'Basics' understanding of the situation and it is
telling you there is no Object associated with the Variant. The reason why the
second example gives a different error is that 'oCurrentSelection' *IS* an
object and the Variant in this case does infact have an object instance that it
tries to call a method on. If the method (or property) does not exist for the
object you are trying to call on it reports that fact.

I see there are other comments about the debugger stopping at the function
(implying it doesn't actually get to the real error) that sounds very
suspicious, if that is happening that would be a bug imho

-- 
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