Products   Support   Download   Contact

Enhanced Command File Substitution

return to contents or index

Abstract

Command File Substitution in recent versions of XENTIS allows for a minimum and a maximum value in addition to a default value.

Q&A:

Question:

How can I get Command File Substitution to validate the user's response against a minimum value or a maximum value? How can I make sure that the user enters a valid date?

Answer:

The solution here is to use the enhanced Command File Substitution that is found in v4.3 and later. You may now use three additional editing capabilities in Command File Substitution, data class, minimum value, and maximum value. This was accomplished by modifying the "default" field used in defining a prompt. The new format of the default field is:

~~default~data_class~minimum_value~maximum_value~~

The rules for this enhancement are:

  1. If a data class is used, then a default value is required.
  2. If a minimum value is used, then a default value and a data class is required.
  3. If a maximum value is used, then a minimum value, a data class, and a default value is required.
  4. Data class is limited to D for dates, N for numerics, and T for texts.
© 2020 GrayMatter Software Corporation