Hello everyone, I'm building a form, that is supposed to read something and then depending on that number, it outputs a form with fields with the same number. For example: for(i 0 length(namesList)-1 namesHandle=hiCreateCyclicField( ?name makeSymbol(strcat("sym" sprintf(nil "%L" i))) ?choices '("" "a" "b") ?prompt " " ?value "" );hiCreateCyclicField );for The code, afterwards, goes on with the same manner to create a 2D form with number of fields. The form is beautiful and everything is perfect, except for one thing. I want at the end to let the user enter his data and then save his inputs into a file. I can create the file and save whatever I want to it but for some reason I can not access the values of the form fields. If I write in CIW this command: myform->sym2->value I get the current value of that field with no problem. But since I don't know the number that is attached to sym because this number is totally generic, it always brings back nil if I replace sym2 with something else like makeSymbol() or concat("sym" i) where i is a for loop counter foreach(name namesList fprintf(filePort "%s" name) fprintf(filePort "%s\n" myform->sym0->value) ) What I need, at the end, is to be able to loop through this field's names to retrieve every value attached to it. Any help is appreciated, thanks Sherif
↧