Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Sep 22, 2017 6:31 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Operator_Compare -> getting operator?
PostPosted: Sun Jun 02, 2013 5:35 am 
Offline

Joined: Fri Feb 12, 2010 1:32 pm
Posts: 228
Location: Switzerland
Hey all,

If I implement Operator_Compare for a custom class, how can I access the comparison operator used?

Best,
Alex


Top
 Profile  
Reply with quote  
 Post subject: Re: Operator_Compare -> getting operator?
PostPosted: Sun Jun 02, 2013 1:51 pm 
Offline

Joined: Thu Apr 10, 2008 6:03 am
Posts: 303
Location: Paris-La Défense, France
Hi,

The comparing operator will be "=", ">", "<", "<=" and ">="

You will need to compare both classes and return an integer.

Return 1, 0, or -1 depending on the comparison.

_________________
Check my Website for high quality custom controls and classes (no plugins) for Windows, Mac OS and Linux
REALBasic 2012 R2 on Win 7 & Mac OS X


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group