Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 Reinoehl
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 Heitz
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 Reinoehl
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 Sep 22 08:22:49 GMT 2014

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

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