Assume a developer wants to validate the contents of a program variable against a list of allowed values while executing an INPUT statement. Which validation method requires the least amount of code changes should the list of allowed values change?

Assume a developer wants to validate the contents of a program variable against a list of allowed values while executing an INPUT statement. Which validation method requires the least amount of code changes should the list of allowed values change?
A . Referencing the list of allowed values in the INCLUDE clause of the form for the field.
B . Comparing the entered value against a list of allowed values using a CASE statement in the AFTER FIELD block of the INPUT statement.
C . Comparing the entered value against a list of allowed values using a CASE statement in the AFTER INPUT block of the INPUT statement.
D . In the AFTER FIELD block of the INPUT statement, calling a validation function which "looks-up" the entered value from a reference table.

Answer: D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments