;+ ; This program creates a string for the history array when multiple ; datatypes, spacecraft or stations are chosen, for use in the ; themis_w_event routine ;$LastChangedBy: kenb-mac $ ;$LastChangedDate: 2007-01-26 15:52:34 -0800 (Fri, 26 Jan 2007) $ ;$LastChangedRevision: 241 $ ;$URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/thmsoc/trunk/idl/themis/common/thm_ui_multichoice_history.pro $ ;- Function thm_ui_multichoice_history, init_string, multi_string n = n_elements(multi_string) mss = ''''+multi_string+'''' ext = init_string+'['+mss[0] If(n Gt 1) Then Begin For j = 1, n-1 Do ext = ext+','+mss[j] Endif ext = ext+']' Return, ext End