Real Software Forums
http://forums.realsoftware.com/

Operator_Compare -> getting operator?
http://forums.realsoftware.com/viewtopic.php?f=1&t=48040
Page 1 of 1

Author:  alexvs [ Sun Jun 02, 2013 5:35 am ]
Post subject:  Operator_Compare -> getting operator?

Hey all,

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

Best,
Alex

Author:  JeremK [ Sun Jun 02, 2013 1:51 pm ]
Post subject:  Re: Operator_Compare -> getting operator?

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.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/