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.
I think this is what you want:
procedure(FileFormCallback(theForm) let((ValueList) ValueList=foreach(mapcar fieldName theForm->fieldList get(theForm fieldName)->value ) printf("%L\n" ValueList) ))
(note no need to use nth or anything like that, and will cope with any number of fields)