| You can use the EXECUTE function to achieve this goal. An example is shown below: 
 pro dj_forum_242017
 compile_opt idl2
 
 for ii = 1L, 5 do begin
 command = "untitled_" + STRTRIM(ii, 2) + " = strarr(" + STRTRIM(ii,2) + ")"
 output = EXECUTE(command)
 endfor
 
 help
 
 end
 
 I hope this helps.
 
 David Starbuck
 -Harris
 |