&prompt-&when question

Chris Kelleher

Administrator
Staff member
Below is code that I cannot seem to get in the right sequence or syntax as I
keep getting a compile error. I want to enter the beginning and ending
dates fields only when the &opt5 is no or false. Can anyone help?

TIA

James E. Dupree
PEG # 1999041502

<BLOCKQUOTE><font size="1" face="Arial, Verdana">code:</font><HR><pre>

{lib/rpt-opt.i
&opt1=symex.ex-beg.whse &type1=ch &at1="colon 40"
&opt2=symex.ex-end.whse &type2=ch &at2="colon 40"
&opt3=symex.ex-beg.item &type3=ch &at3="colon 40"
&opt4=symex.ex-end.item &type4=ch &at4="colon 40"
&opt5=symex.ex-optpr.pr-zero-qty &type5=lo &at5="colon 40
label 'Quantity selection'
help 'Enter (Y)es for less than or (N)o for not equal to zero'"
&default5=true
&opt6=symex.ex-beg.date &type6=da &at6="colon 40 &prompt-&when5=false
label 'Starting Date'
help 'Enter the first of the month'"
&opt7=symex.ex-end.date &type7=da &at7="colon 40 &prompt-&when5=false
label 'Ending Date'
help 'Enter the last of the month'"
&dest8="colon 40" &const8="skip(1)"
}

[/code]
 
Top