# Dynamically creating list for Prompt for Variables

**URL:** https://www.finalbuilder.com/forums/t/dynamically-creating-list-for-prompt-for-variables/92
**Category:** Discussion
**Created:** [May 11, 2006, 12:02pm UTC](https://www.finalbuilder.com/forums/t/dynamically-creating-list-for-prompt-for-variables/92 "2006-05-11T12:02:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [May 11, 2006, 12:02pm UTC](https://www.finalbuilder.com/forums/t/dynamically-creating-list-for-prompt-for-variables/92/1 "2006-05-11T12:02:41Z")

</div>

I’d like to create the list of possible values for a variable of type Unsorted List in the Prompt for Variables action.  
I would do that using a File iterator.  
  
The question therefore is: is it possible to create a variable, append the folder names in it as I iterate through folders, and then put that variable in the Values field?  
How do I go about adding carriage returns (\r\n) in the variable string?

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [May 12, 2006, 4:03am UTC](https://www.finalbuilder.com/forums/t/dynamically-creating-list-for-prompt-for-variables/92/2 "2006-05-12T04:03:00Z")

</div>

Yes, you can do this.  
  
In VBScript you can append another line to a variable like this:  
myVariable = myVariable + vbCRLF + “another value”
