Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » EGL Development Tools » How-to compare two records
How-to compare two records [message #896924] Fri, 20 July 2012 12:58 Go to next message
Wilfried Reinoehl is currently offline Wilfried ReinoehlFriend
Messages: 9
Registered: July 2012
Junior Member
Can anybody show me how to compare two records in EGL ? TIA.
Re: How-to compare two records [message #896958 is a reply to message #896924] Fri, 20 July 2012 14:21 Go to previous messageGo to next message
Matt Heitz is currently offline Matt HeitzFriend
Messages: 36
Registered: July 2009
Member
Hi Wilfried,

Do you want to compare each field of the records to see if they're equal? There's no simple way to do that right now. You must write something like this:
if ( rec1.field1 == rec2.field && rec1.field2 == rec2.field2 && ... )

-Matt
Re: How-to compare two records [message #897164 is a reply to message #896958] Sun, 22 July 2012 20:02 Go to previous message
Wilfried Reinoehl is currently offline Wilfried ReinoehlFriend
Messages: 9
Registered: July 2012
Junior Member
Hi Matt,

You showed me the hard way I'd like to avoid: implementing something like java equals() methods.

Nevertheless, thank you for your reply,

Wilfried
Previous Topic:SQLException
Next Topic:SQLite3 Connection
Goto Forum:
  


Current Time: Mon Dec 02 20:23:54 GMT 2024

Powered by FUDForum. Page generated in 0.03339 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top