|
--- jrc@e-masi.com wrote: > >> if date = %range( 20030101 20030201 ) > > > >YES! I would go for this. > > If you would go for this, then write it! > > A function like this would be simple to write and could be easily >incorporated into your code: > > Write a sub-routine called inDateRange. > Send it 3 parameters, testDate, BegDate and EndDate. <snip> Actually, I was thinking of something more generic, where the arguments could be any data type (all three the same data type). So, one could use: c If inRange( Grade : 'A' : 'D' ) c If inRange( Salary : 25000 : 80000 ) c If inRange( Date : d'2002-07-01' : FinalDate) Also, the %list function would be nice as well, but to be truly useful, it would have to accomodate a variable number of arguments, as well as deal with any data type: c If inList( Status : 'A' : 'D' : 'P') c If inList( someNumber : 1 : 4 : 6 : 10 : defaultNumber ) Is it possible to do that? - Dan __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.