<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi All,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have done this once before and can't seem to remember how I did it.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have 10 program variables namely $parm[1-10].&nbsp; Then I try to check if they are set using a loop like so:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; for ( my $x = 1; $x &lt;= $maxParm; $x++ ) {<BR>&nbsp;&nbsp;&nbsp; my $parmName = "parm" . $x;<BR>&nbsp;&nbsp;&nbsp; if ( $$parmName ) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my ($hardValue, $replaceValue) = split(/~!~/, $$parmName);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $sqlString =~ s/~$hardValue~/$replaceValue/g;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; }</DIV>
<DIV>&nbsp;</DIV>
<DIV>$$parmName has no value.&nbsp; What am I doing wrong?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you all in advance.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Peter</DIV></td></tr></table><br>