06-22-2009, 11:48 PM
Function Searching_And_Formatting_List
str List1="Rock Island; Henry; Bureau; Putnam; Mercer; Henderson; Warren; Hancock; McDonough"
str List2="Rock Island; Henry; Putnam; Mercer; Bureau; La Salle; Henderson; Warren; Hancock; McDonough"
str List3="Rock Island; Henry; Mercer; Bureau; La Salle; Henderson; Warren; Hancock; McDonough"
str List4="Rock Island; Henry; Mercer; Bureau; Henderson; Warren; Hancock; McDonough"
;I need to format the output if List contains "La Salle", "Bureau", and/or "Putnam".
;
;example:
out List1 ;;would need to be formatted to "Bureau and Putnam:"
out List2 ;;would need to be formatted to "La Salle, Bureau, and Putnam:"
out List3 ;;would need to be formatted to "La Salle and Bureau:"
out List4 ;;would need to be formatted to "Bureau:"
;Thanks,
;Jimmy Vig