ibec_CmpRecords

Compares two arrays of variants (records).

Syntax

  function ibec_CmpRecords(Record1, Record2 : array of variants): variant;

Example

  execute ibeblock
  returns (iresult integer)
  as
  begin
    Val1[0] = 1; Val1[1] = 'ABC'; Val1[2] = 25.67;
    Val2[0] = 1; Val2[1] = 'ABC'; Val2[2] = 25.67;
    iresult = ibec_CmpRecords(Val1, Val2); /* iresult = 0 */
    suspend;

    Val2[2] = 15.43;
    iresult = ibec_CmpRecords(Val1, Val2); /* iresult = 2 */
    suspend;

    Val2[3] = 0;
    iresult = ibec_CmpRecords(Val1, Val2); /* iresult = NULL */
    suspend;
  end

See also:
ibec_CmpRecords2
ibec_CmpVals

back to top of page
<< ibec_Chr | IBEBlock | ibec_CmpRecords2 >>