| To: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
|---|---|
| Subject: | Re: Operator_Compare with variant objects? |
| From: | Michael Diehr <md03@xochi.com> |
| Date: | Sat, 30 May 2009 12:01:13 -0700 |
| 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: | <9142A64B-6ACF-4072-B847-82A5C7098969@xochi.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> |
| Reply-to: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
| Sender: | realbasic-nug-bounces@lists.realsoftware.com |
(a side note):
The LR is a bit confusing:
Issue 1: it lists
Variant.Operator_Compare(v) as integer
yet this code won't compile:
dim v1,v2 as variant
if v1.Operator_Compare(v2) = 0 then ...
Issue 2: it says
"Variant.Operator_Compare(v) as integerUsed to define all the
comparison operators for the Variant. If Operator_Compare is defined,
it is called whenever any of the comparison operators are used to
compare the Self instance of the class with another instance. The
following comparison operators are covered: =, <, >, <=, >=, <>.
Operator_Compare returns an integer whose meaning is as follows: <0
means that Self is less than the passed parameter, 0 means that Self
is equal to the passed parameter, and >0 means that Self is greater
than the passed parameter"
I'm not sure what this means. Is this relevant for subclassing a variant or something? Can you subclass a variant? If so, I wonder if that would solve my problem? _______________________________________________ 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> |
|---|---|---|
| ||
| Previous by Date: | Re: Scope/Protection Question, Metsis |
|---|---|
| Next by Date: | Why filesize doesn't change..., lveillette |
| Previous by Thread: | Re: Operator_Compare with variant objects?, Michael Diehr |
| Next by Thread: | Re: Operator_Compare with variant objects?, Joe Strout |
| Indexes: | [Date] [Thread] [Top] [All Lists] |