Yup. It is called the two argument $LENGTH. $LENGTH(STRING,SUBSTRING) ; Returns the number of pieces ; There is always at least 1 returned even when there is no occurrence of the substring..
S X="THIS IS A TEST" W $L(X,"^") 1 W $L(X," ") 4 W $L(X,"T") 4 W $L(X,"IS") 3 ----- Original Message ----- From: "Kevin Toppenberg" <[EMAIL PROTECTED]> To: "Hardhats Sourceforge" <hardhats-members@lists.sourceforge.net> Sent: Sunday, March 26, 2006 6:00 AM Subject: [Hardhats-members] Is there a mumps function like $NumPiece()? Is there a function that returns the number of pieces in a string? Kevin ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members