Skip navigation
Currently Being Moderated

How to compare 2 Class Objects

Feb 16, 2012 12:05 AM

Hallo. I have 2 Objects of Type i_DomandaRisposte. This is the Object class: 

 

 

package MyProg.vo
{
  import flash.utils.ByteArray;
  import mx.collections.ArrayCollection;

 

[Bindable]
[RemoteClass(alias="MyProg.i_DomandaRisposte")]
public class i_DomandaRisposte
{
  public function i_DomandaRisposte(){}

public var tip:String;
  public var tipologia_risposta:Number;
  public var numero_visualizzazioni:int;
  public var numero_selezioni:int;
  public var ordine:Number;
  public var img:Array;
  public var traduzioni:Array;
}
}

 

If i have 2 instances of this object, which is the best way to compare this 2 instances and to understand if, in each property, there is the same content??.. As you see there are strings, Int and Array. I need to check that the int values, string values and all Array contents are the same.. How can i do that??.. I hope you understand my request.

 

Thx

 

Max

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points