×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




OK, I'll bite. I've done this with a choice control program, validity checker, or a list of values in the parameter definition, but if there is another way to do this, I'd be interested to see how it's done.


On 3/7/07, Douglas Palme <dpalme@xxxxxxxxxxx> wrote:
I received this from one of our RPG gurus and I thought I would present it
to the midrange group and see what ya'll thought:



There is a way to completely control the input from a command and validate
it before the program is actually called. There is also a way to presentthe
actual valid parameters without hard-coding anything. As an example you
could have a command that takes a division number and if you do not enter a
division that exists in the DIVISION file it will not accept the value.

This is true for anything you want to validate, a date, time, printer,

username, etc. Most programmer shy away from writing powerful commands as they do not understand them.


Anyone?


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.