I am trying to construct a dialog box with a variable number of fields, however, the hiCreateStringField ?name parameter is supposed to be a single-quoted symbol reference so I cannot simply assign the result of hiCreateStringField to an array and then reference it. I must have the wrong approach.
Does anyone know how to construct a form with a variable number of fields? If so, can you point me in the right direction? I want to be able to create fields in an indexed loop and read their values that way.
No sure it this that you're looking for.
StringList = list("field1" "field2" field3" "field4")
form = hiCreateAppForm(?name 'form ?fields foreach(mapcar str StringList hiCreateStringField(?name stringToSymbol(str) ?prompt str)))hiDisplayForm(form)
This will process all string in StringList and create a stringField for the form.