I'm writing a class for Playing cards and would like to compare them with:
=,<,>.
While hPlayingCard1=hPlayingCard2 works just fine,
hPlayingCard1<hPlayingCard2 and hPlayingCard1>hPlayingCard2 do not.
The program stops with:
#6: Type mismatch: wanted Number, Date or String, got PlayingCard instead
My _compare is simple:
Public Function _compare(OtherObject As PlayingCard) As Integer
Return 0
End
What can I do to make comparing with <,> possible?
/patrik
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user