I want to put Minimum Value of (cpKL,cpKR) into cpK How to write the expression for cpK sigma.Expression = "(Convert(point90,'System.Double')-Convert(point10,'System.Double'))/2.56"; cpKL.Expression = "(Convert(point50,'System.Double')- Convert(LSL,'System.Double'))/(3.0*sigma)"; cpKR.Expression = "(Convert(USL,'System.Double') - Convert(point50,'System.Double'))/(3.0*sigma)"; // The expression contains undefined function call Math.Min(). //cpK.Expression = "Math.Min((Convert(cpKL,'System.Double'),(Convert(cpKR,'System.Double'))";
cpK.Expression = "IIF(cpKL < cpKR, cpKL, cpKR)";
cpK.Expression = (cpKL<cpkr)?cpkl:cpkr;>
if(cpKL < cpKR) { cp = cpKL; } else cp = cpKR; Now assign cpK.Expression = cp;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)