|
>> As for your suggestion that it would be more appropriate to use %check, I dunno. Well you are performing a check on the value so it seemed appropriate - you aren't scanning. I look at it from the maintenance perspective - if another programmer sees %Check( ValidTypeCodes: TransType ) it just "spells it out" better for me. However - It shouldn't matter _what_ method you use 'cos it should never be in the mainline code anyway - I'd rather see it buried in a subproc that returns an indicator (thereby allowing the simple If you desire). So what should be coded is If Validxxxxx(xxxxxCode) or whatever. Jon Paris Partner400
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.