Using the CScript _StrnCmp() function to compare one character from each string, the return value is always 0. If the compared strings are at least two characters long, it works properly in most cases. However, the following script fails as well:
fline=” 1) ‘p5669050.301288 EDIT STATUS'”;
cdash=”*-*”;
dash=MidStr(fline,26,1);
xdash=”*” + dash + “*”;
rc=_StrnCmp(xdash,2,cdash,2,2);
rcstr=_Str(rc);
MsgBox(rcstr,”xdash=” + xdash + ” cdash=” + cdash,0);
CR 721
This entry was posted
on Wednesday, May 2nd, 2007 at 10:23 am and is filed under CScript.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.