|
M Hello Martin, You wrote: >That's what I used on the only one I've ever written, and that worked. >But I've also seen them with no selective prompting characters at all. While ?? does work, I don't think it is appropriate because the POP is not always invoked and therefore the CPP will get the command default anyway. It also indicates to the CPP that the user changed something when they didn't. If you don't use any selective prompt characters then the behaviour is like using ??. You get either the POP supplied value or the value typed by the user but you never get the default value unless the command was run without prompting. I prefer the ?< approach because that fits with the designed intention of prompt override programs and allows my CPP to process the command without caring about the difference between default values and POP supplied values. The above presumes use of ??KEYWORD(value) rather than ??KEYWORD() which seems mostly pointless. Regards, Simon Coulter. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» «» FlyByNight Software AS/400 Technical Specialists «» «» Eclipse the competition - run your business on an IBM AS/400. «» «» «» «» Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 /"\ «» «» Fax: +61 3 9419 0175 mailto: shc@flybynight.com.au \ / «» «» X «» «» ASCII Ribbon campaign against HTML E-Mail / \ «» «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
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.