Other Considerations

From Vital Soft Wiki
Jump to: navigation, search

Handling Prompts and Questions

When AskPlus is executing in batch it cannot prompt the user for additional information. In batch, AskPlus will use the following defaults instead of prompting the user:

  • When qualifying ambiguous items or sets, AskPlus will use the first available choice in the list. We strongly recommend that you fully qualify all ambiguous item and set names to avoid having AskPlus select the wrong item (or set) by default.
  • When creating files (and neither DELETE nor APPEND was specified), AskPlus will use DELETE as the default. Any existing file of the same name will be automatically deleted.
  • When resolving user prompts (?PROMPT), AskPlus will assume that the next line in the script contains the value and will read the value from the script input. If the prompt is inside an XEQ file, AskPlus will read the next line of the script (not the next line of the XEQ file) to get the value.
  • By default, AskPlus will abort if an error occurs while executing in batch.

Working with Automic (UC4)

Automic uses the ! character to signify a comment, therefore the first (non blank) character of any line in the script should not be an ! (exclamation). If, for example, your selection criteria begins with !RANGE, you must reformat the code so that !RANGE does not appear at the start of the line or insert ":DATA " (and a blank character) before the exclamation. The :DATA will force Automic to process the statement as a valid line of code and not treat it as a comment.