contents   index   previous   next



seCompare

 

syntax:

   boolean

SEContext.seCompare(SEObject obj1,

                    SEMemberDesc mem1,

                    SEObject obj2,

                    SEMemberDesc mem2,

                    int[] result);

where:

obj1 the object half of the Object,Member pair for the first operand.

 

mem1 the member half of the Object,Member pair for the first operand.

 

obj2 the object half of the Object,Member pair for the second operand.

 

mem2 the member half of the Object,Member pair for the second operand.

 

result an output parameter which has its first element set to -1, 0, or 1 to indicate that the first member is less than, equal to, or greater than the second member.

 

return:

true if the two members are equal

 

description:

This function uses the ECMAScript rules to determine the relationship between the two variables. Since ECMAScript only defines a less-than relationship, this routine internally has to compare twice to give all the possibilities. For that reason, you can narrow the information you are interested in by specifying one of the following special values as the result parameter. In that case, only the boolean return of the function is used as described in each case:

 

SE.COMP_EQUAL

 

Determine if the two members are equal

 

SE.COMP_LESS

 

Determine only if the first member is less than the second.

 

see:

None

 


OBJECT ACCESS ROUTINES