Code:
'Date Created: 21-Dec-2012 12:37:04 PM
'Last Updated: 21-Dec-2012 12:37:04 PM
'Created By : spilon
'Updated By : spilon
dim name_list as c
dim count_list as c
dim letter_count as n
name_list = "Jacqueline,Karen,Pat,Kerry,Ludivia,Martha,Doriana,Kimberly,AnnaMarie,Amanda,Caitlin,Gianna,Tara,Britt,Whitney,Kelly,Lisa,Gina,Laura,Debra,Robin,Dana,Valerie,Pamela,Steven,Thomas,Margaret,Denise,Ellen,Jack,Kimberly,Mary,Kathy,Nicole,East,Aziza,Patrick,Ryan,Caryl,Anne,Christina,Jeannette,Glenda,Mary,Laura,Marguerite,Bobble,Suzanne,Catherine,Jenifer,Anne,Cynthia,Rebecca,Heidi,Nancy,Jennifer,Ilya,Aurea,Leah,Denise,Mary Ellen,Amy ,Samantha,Laura,Stephanie,Janet,Claudia,Anne,Marta,Katherine,Martha,Susanne,Robert,Cathy,Clare,Robert,Bunny,Jennifer,Rebecca,Lauren,Danielle,Meghann,Samuel,Lauren,Laura,Julia,Christina,Mary Ann,Sylvia,Katherine,Antonia,Kathryn,Michaela,Jennifer,Michelle,Carolyn,Stacey,Joan,Tara,Kristina,Gaston,Kristine,Anne,Michelle,Kimberly,Nelen"
name_list = comma_to_crlf(upper(name_list))
count_list = *for_each(foo,left(foo,1),name_list)
for i = 65 to 90
letter_count = word_occurs(count_list,chr(i),crlf())
trace.writeln(chr(i) +" : " + letter_count)
ui_msg_box("Letter " + chr(i),"Count of letter " + chr(i) + ": " + letter_count)
next i
I just put the names in a variable, but getting them from a table would be no biggie. I would use something like this in place of the two lines that start with "name_list =":
Bookmarks