Forum Discussion
jorgesimoes1983
13 years agoRegular Contributor
Something like this?
http://support.smartbear.com/viewarticle/32130/
function compare_string(str1,str2)
{
var strFormat;
switch (aqString.Compare(str1, str2, true))
{
case -1 : strFormat = "\"%s\" is less than \"%s\"."; break;
case 0 : strFormat = "\"%s\" and \"%s\" are equal."; break;
case 1 : strFormat = "\"%s\" is greater than \"%s\"."; break;
}
Log.Message(aqString.Format(strFormat, str1, str2));
}
http://support.smartbear.com/viewarticle/32130/
function compare_string(str1,str2)
{
var strFormat;
switch (aqString.Compare(str1, str2, true))
{
case -1 : strFormat = "\"%s\" is less than \"%s\"."; break;
case 0 : strFormat = "\"%s\" and \"%s\" are equal."; break;
case 1 : strFormat = "\"%s\" is greater than \"%s\"."; break;
}
Log.Message(aqString.Format(strFormat, str1, str2));
}