The HotDocs Computation Archive
Get Extra Help

0033 - Populate a Multiple Choice Variable with Data from a Repeated Dialog

Description:

Gathers all of the answers from a repeated variable (repeated dialog) and places them in a multiple choice variable.


• Code •

CLEAR MultChoiceVar
REPEAT RepeatedDialog
   ADD "«Variable»" TO MultChoiceVar
END REPEAT

• Explanation •

The first line clears all of the current options from the multiple choice variable "MultChoiceVar". The REPEAT section then runs through the answers for the repeated dialog "RepeatedDialog" and adds each one to MultChoiceVar.

You can control what values are added to MultChoiceVar by using a FILTER.