|
Pete wrote: > Write your own command, which knows the correct data types of the > parameters and passes them accordingly. It's really very easy to > write simple commands. That's the stuff! Commands must be one of the most under-utilised features of CL. I've been to many shops where they are not used at all, for no very clearly defined reason. I've also known one quite large shop where numeric parameters were prohibited as well, because "it is not possible to pass a packed decimal parameter". As well as ensuring that parameters are correctly formatted commands, with a validity checker if necessary, can also take care of the parameter validation thus simplifying the CPP and letting the programmer concentrate on the function it's meant to perform. Dave... ======================================================= The opinions expressed in this communication are my own and do not necessarily reflect those of my employer.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.