|
|
|
|
Customers Important Contributors Translator GenoPro version: 3.1.0.1
Last Login: Friday, November 25, 2022
Posts: 334,
Visits: 7,574
|
What do you mean?
Trim() and Len() are built in Method in almost any programming language.
Len() will return you the length of a string - which means the number of charachters in the string.
Trim() will remove spaces before or after a string. For example - Trim (" PersonName ") will return "PersonName"
What Dan meant is that you can use those Methods your self to manipulate your strings and design your page as you like, until the Method he spoke about will be finished.
|
|
|
|
|
Forum Members
Last Login: Monday, December 10, 2007
Posts: 72,
Visits: 426
|
where would i do them from?
|
|
|
|
|
Customers Important Contributors Translator GenoPro version: 3.1.0.1
Last Login: Friday, November 25, 2022
Posts: 334,
Visits: 7,574
|
sorry but i dont understand. if you dont have time to explian thats fine
What Dan said is that he is going to add new formatting options to the Util.FormatString (and Report.WriteFormatted) Methods, so they could handle what you requested.
Using those Methods you could build your ASCII tree.
Those formatting options will allow text truncation and text padding such as | Report.WriteFormatted "{#20,25}", i.Name |
The #20 does keep the first 20 characters, and the ,25 does padd with spaces until the total length of the argument is 25 characters.
The new Methods will allow the user to decide the length of the name to display (20 in Dan's example) and then you can add spaces to the name so the layout will be as you want. According to Dan's example each name will have a place for 25 characters (you need spaces to distinguish between the names and avoid overlapping of one name on another).
You can still do it without this, however you will have to use Len() and Trim() routines to truncate the strings yourself.
Until those Methods will be added, Dan said that you can do it yourself and not wait for his new Methods, because the tools to this are already available. You have two routines that you can use to get the same result - Len() - which gives you the length of a string - and Trim() - which removes spaces before and after the string.
I hope that I helped you understand better what Dan said. :-)
|
|
|
|
|
Forum Members
Last Login: Monday, December 10, 2007
Posts: 72,
Visits: 426
|
sorry but i dont understand
if you dont have time to explian thats fine
|
|
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Tuesday, October 28, 2025
Posts: 4,886,
Visits: 22,799
|
If you wait a bit more, I will add new formatting options to the Util.FormatString (and Report.WriteFormatted).
Those formatting options will allow text truncation and text padding such as| Report.WriteFormatted "{#20,25}", i.Name |
The #20 does keep the first 20 characters, and the ,25 does padd with spaces until the total length of the argument is 25 characters. You can still do it without this, however you will have to use Len() and Trim() routines to truncate the strings yourself.
|
|
|
|
|
Forum Members
Last Login: Monday, December 10, 2007
Posts: 72,
Visits: 426
|
|
|
|
|
|
Forum Members
Last Login: Monday, December 10, 2007
Posts: 72,
Visits: 426
|
to tell you the truth im not sure
i was thinking something along the lines of this format
/William SMITH b: ABT. 1675 d: 1739 /Isaac SMITH b: BET. 1730 - 1802 d: ABT. 1801 | | /William DOWNING , Capt | \Elizabeth DOWNING b: ABT. 1680 | \Mary ? Jane Doe SMITH b: BET. 1748 - 1755 | /Peter RUCKER b: BET. 1661 - 1675 d: BEF. 23 FEB 1743 | /John RUCKER b: ABT. 1715 d: BET. 1742 - 1743 | | | /Robert FIELDING | | | /Edward FIELDING b: 1645 d: 1693 | | | | \Elizabeth NEALE | | \Elizabeth FIELDING b: ABT. 1670 | | \Elizabeth ? \Margaret RUCKER b: ABT. 1725 | /William PHILLIPS \Susannah PHILLIPS b: ABT. 1685 \Susannah LLOYD
|
Edited: Wednesday, June 14, 2006 by
GenoProSupport
|
|
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Tuesday, October 28, 2025
Posts: 4,886,
Visits: 22,799
|
The report generator was designed to handle Ascii (plain text), HTML and RTF (rich-text format). If you want to start with Ascii, please give me a few hints on how you will proceed and I will modify the report generator to handle plain text. Handling plain text is easy, however I have to write a few extra lines of code.
|
|
|
|
|
Forum Members
Last Login: Monday, December 10, 2007
Posts: 72,
Visits: 426
|
this has all been discussed before but i never heard if it was under concideration or not
basicly just make a pedigree tree or full blow tree useing ascii so it can be easly displayed on a webpage
|