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