<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi John:<BR>&nbsp;<BR>In&nbsp; CEDIT I would&nbsp;code a printf for each parameter. to check that they&nbsp;have been passed correctly.<BR>&nbsp;<BR>&nbsp;<BR>BTW:-<BR>&nbsp;<BR>Powerhouse pads with blanks for unequal length character string comparisons.<BR>In C, I like to null terminate strings. I do not want to compare blank with the<BR>null character. So I make my comparisons against a substring of the string coming<BR>back from C. You probably&nbsp;can get away&nbsp;with it if the&nbsp;C code&nbsp;does modify&nbsp;the&nbsp;original<BR>PowerHouse string value and you are testing for&nbsp;a change in the Powerhouse string value.<BR>&nbsp;<BR>In your case the null is in position 2. <BR>&nbsp;<BR>if "Y" &lt;&gt; t_prod_ok[1:1] <BR>then display t_err_msg<BR>end<BR><BR>instead of&nbsp;<BR>&nbsp;<BR>if t_prod_ok &lt;&gt; "Y" <BR>then display t_err_msg<BR>end<BR><BR>Regards,<BR>Peter<BR><br /><hr />Faster Hotmail access now on the new <a href='http://go.microsoft.com/?linkid=9677399' target='_new'>MSN homepage.</a></body>
</html>