Atm, what my code does is put a list of names in a datagrid column but puts "Student Names" in between. I know this is probably due to "Student Names" being in the repeat structure, but i don't know how else it would work? I may be misusing the Array as well, so any help at all would be beneficial.
Code: Select all
repeat with x=1 to the number of lines in field "RegisterList"
put "Student Names" & cr &\
Line x of field "RegisterList" into tDgArray[x]
end repeat
combine tDgArray using return
put tDgArray into theText
put true into firstLineContainsColumnNames
set the dgText [ firstLineContainsColumnNames ] of group "Register Group" to theText
Thanks!