contents   index   previous   next



seCompare

 

syntax:

   sebool

seCompare(secontext se,seobject obj1,

                       semember mem1,

                       seobject obj2,

                       semember mem2,

                       slong *result);

where:

se the context the members belong to

 

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 returning -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