rrCompareCaseLength

Uses the smart parameters that you enter as the parameter to locate and compare the values of two object's variables.

Syntax

bool rrCompareCaseLength(string object1, string object2, 
string caseSensitive, string length, string fromStart)

Parameters

string object1

string object2

string caseSensitive

string length

string fromStart

Parameters

Five Parameters.
  1. A value or a smart parameter, which is a reference to a value.
  2. A value or a smart parameter, which is a reference to a value for comparison.
  3. True runs a case-sensitive compare. False runs a case insensitive compare.
  4. An integer for the number of characters to compare. If the length is 0, the entire string is compared.
  5. True compares from the start of the string. False compares from the end of the string.

Returns

False If the compared values do not match. Otherwise, True.

Level

All.

Details

Uses the Smart Parameters that you enter as the parameter to locate and compare the values of two object's variables. The comparison can be limited to a specified number of characters from the start or the end of the string. The comparison can be run case-sensitive or case insensitive.
Example
rrCompareCaseLength("Main","@JOBID","False",4,"True")

This example compares the string "Main" to the current Job ID. Only the first four letters are compared and the compare is case-sensitive. If the current Job ID is "MAIN_JOB", the action returns True.

rrCompareCaseLength("Main","@JOBID","True",4,"True")

This example compares the string "Main" to the current Job ID. Only the first four letters are compared and the compare is case-sensitive. If the current Job ID is "MAIN_JOB", the action returns False.

rrCompareCaseLength("Main Line","Main Job","True",4,"True")

This example compares the string "Main Line" to the string "Main Job". The compare is case-sensitive and only the first four letters are compared. The action returns True.

rrCompareCaseLength("@P.ScanSrcPath","GOOD.BMP","False",8,"False")

This example runs a case insensitive compare of the last 8 characters of the ScanSrcPath variable to find the last 8 characters of the string "GOOD.BMP". If the value of ScanSrcPath is "c:\test\testvalidate\images\good.bmp", the action returns True.