GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Create a text file containing unique surnames

Click to view RSS...
Author Get a list of every last names into a plain .txt file
Posted Monday, June 20, 2005 - Post #6975
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Forum Members

Last Login: Monday, December 10, 2007
Posts: 72, Visits: 426
could you run a report (and please excuse me if this is just completely of base) that would let get me a list of every LAST name in my tree and pump it out to a .txt file or something like that?

Edited: Monday, September 19, 2005 by GenoProSupport
Posted Thursday, August 18, 2005 - Post #6976
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 10:15 AM
Posts: 4,887, Visits: 22,770
In the future, GenoPro will have better support for file I/O. In the meantime, you can do the following:
1. Create a text file in your skin folder, say "FamilyNames.txt"
2. Insert the following entry in Config.xml to feed the file FamilyNames.txt to the report generator:
<ReportGenerator>
<Report Template="FamilyNames.txt" />
</ReportGenerator>

3. Insert the following code in the file FamilyNames.txt:
<%[
' Use a string dictionary to count the frequency of each last name.
' Counting the last names ensures each entry is unique.
' We could use the ObjectRepertory, but the StringDictionary is faster.
Set oStringDictionaryNames = Util.NewStringDictionary()
For Each i In Individuals
oStringDictionaryNames.Add i.Name.Last
Next

' Sort the dictionary from the largest to the smallest number
' to have the most popular last name at the top of the list
oStringDictionaryNames.SortByCounter
oStringDictionaryNames.Reverse
iNameLast = oStringDictionaryNames.Count - 1
For iName = 0 To iNameLast
  strNameLast = oStringDictionaryNames.Key(iName)
  If (strNameLast <> "") Then
    Report.WriteLn strNameLast
  End If
Next
]%>


PS: You may get a message "The template does not contain any charset encoding... assuming UTF-8...". To remove this message, use Notepad and save the file FamilyNames.txt using the UTF-8 encoding.


Edited: Monday, September 19, 2005 by GenoProSupport
Posted Thursday, August 18, 2005 - Post #6977
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Forum Members

Last Login: Monday, December 10, 2007
Posts: 72, Visits: 426
awsome
Posted Thursday, August 18, 2005 - Post #6978
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Forum Members

Last Login: Monday, December 10, 2007
Posts: 72, Visits: 426
do you mean skins or skins/english becuase that is where the xml files are
Posted Thursday, August 18, 2005 - Post #6979
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 10:15 AM
Posts: 4,887, Visits: 22,770
You should have a folder named "MySkin" where you make your modifications. You simply copy the content of "English" into anothe folder named "MySkin". The "English" folder gets upgraded each time you upgrade GenoPro. If you are not sure; make backup(s), so you can recover any lost file.
Posted Tuesday, September 20, 2005 - Post #8512
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.5

Last Login: Saturday, March 14, 2020
Posts: 365, Visits: 3,680
I found this very usefull as I put a names list (without links) on the first page of my web site and it was complicated to get it there before. Hehe

Now I will have a ready made list! Cool

Posted Tuesday, September 20, 2005 - Post #8513
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 10:15 AM
Posts: 4,887, Visits: 22,770
Posted Tuesday, September 20, 2005 - Post #8517
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.5

Last Login: Saturday, March 14, 2020
Posts: 365, Visits: 3,680
Thanks Dan, but I found that this system was easier to set up than the one indicated by your linkTongue:
Posted Wednesday, October 5, 2005 - Post #8752
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Forum Members

Last Login: Monday, December 10, 2007
Posts: 72, Visits: 426
sorry im removing this

Edited: Sunday, April 16, 2006 by crash893
Posted Monday, December 12, 2005 - Post #9543
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.5

Last Login: Saturday, March 14, 2020
Posts: 365, Visits: 3,680
' Sort the dictionary from the largest to the smallest number
' to have the most popular last name at the top of the list
oStringDictionaryNames.SortByCounter
oStringDictionaryNames.Reverse
iNameLast = oStringDictionaryNames.Count - 1
For iName = 0 To iNameLast
  strNameLast = oStringDictionaryNames.Key(iName)
  If (strNameLast <> "") Then
    Report.WriteLn strNameLast
  End If
Next

How can I get the names into Alfabetical order instead of in order of quantity ?Blink

Edited: Monday, December 12, 2005 by GenoProSupport



Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse
Active: 2 - 1 guest, 0 members, 0 anonymous.
Refresh
No members currently viewing this topic!