On 14 Aug 2010, at 10:12, Rich Mellor wrote: > > Note that in a procedure you should not use any of the parameters to that > procedure as your SELect variable. > > Instead of : > > DEFine PROCedure menu (a,b,c) > SELect ON a > ..... ...... > ..... ...... > ..... ...... > > You should use : > > DEFine PROCedure menu (a,b,c) > LET choice = a > SELect ON choice > ..... ...... > ..... ...... > ..... ...... > > The SELect variable must not be a string variable or an integer/
If the variable "a" is floating point the LET choice = a is not needed according to Jan Jones, who should know. She says: " [the parameter] must be a simple floating point variable." She gives an example where the parameters of a procedure are a,b,c and in which she has SELect on a . . So you CAN use a floating point parameter directly in a SELect clause. George _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
