Millisecond Forums

List element with string items

https://forums.millisecond.com/Topic14895.aspx

By DCole9 - 11/5/2014

Hi there,
Is it possible to have a list of string items?  I am receiving an error when attempting to do this.

E.g.
<list months>
/items = ("January", "February", "etc."....)
</list>
By Dave - 11/5/2014

<list strings>
/ items = ("A", "B", "C")
</list>

or the like is perfectly fine to do and will not result in any error in and of itself. Any error would result from *how you use* the list's items. Presumably you're trying to use a string where Inquisit expects something else (e.g. an integer in a /select attribute).
By DCole9 - 11/5/2014

Hmm I can't really seem to find where this would be the case.  Do you mind taking a look to see where I might be using a string instead of an integer?
By Dave - 11/5/2014

The problem is that the double-quotes in <list shorttimeamount> (cf. shorttimeamount.txt) aren't regular double-quotes.

Fix that and everything will parse just fine.
By DCole9 - 11/6/2014

That worked, thanks!