Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Searching and formatting a list
#1
Function Searching_And_Formatting_List
Code:
Copy      Help
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


Forum Jump:


Users browsing this thread: 1 Guest(s)