realbasic-nug
[Top] [All Lists]

Re: Operator_Compare with variant objects?

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Operator_Compare with variant objects?
From: Charles Yeomans <charles@declareSub.com>
Date: Sun, 31 May 2009 16:25:29 -0400
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <FBDB706D-B86A-49C1-AF75-CFD2CC6FA2CF@great-white-software.com>
References: <AEF09038-DB63-4857-BBE1-AE5D13AA6FF3@xochi.com> <3AA0AEC2-D230-4A4C-8788-84C3FCC17A44@great-white-software.com> <9142A64B-6ACF-4072-B847-82A5C7098969@xochi.com> <8A43BEAB-A481-44A2-93FF-F61259CB16B3@great-white-software.com> <F043E429-7B72-4F1E-8830-4010A9A49E8D@xochi.com> <77E07835-215F-43A6-A18E-120A939BF96B@great-white-software.com> <2D46F66E-B2D7-4A34-BFCC-91D1332C24A0@xochi.com> <FBDB706D-B86A-49C1-AF75-CFD2CC6FA2CF@great-white-software.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On May 31, 2009, at 3:28 PM, Norman Palardy wrote:


On 31-May-09, at 12:44 PM, Michael Diehr wrote:

On May 31, 2009, at 8:17 AM, Norman Palardy wrote:
On 30-May-09, at 4:19 PM, Michael Diehr wrote:

I haven't tried it but I suspect

if v1.operator_compare(v2) ......

would do

It doesn't work for me...

Hmmm....
Having to cast would defeat what I think you're after but I think I can see why it's necessary I'll have to do some checking to see if what I'm thinking is the reason

Thanks norman! -- let me know if you want me to submit a feature request / bug report?

Submit a bug report

 if v1 <> v2
and
 if v1.objectValue <> v2.objectValue

are SUPPOSED to be using the defined operator compares methods but aren't

That's a bug

I don't see how the latter can be. The return type of Variant.ObjectValue is Object, so this is no different than

dim obj1 as Object = new Class1
dim obj2 as Object = new Class1
if obj1 <> obj2

a situation known not to use Operator_Convert because of the refusal of RS to define an Object class.

Charles Yeomans



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>