<-- Previous || Up || Next -->

Average Reading Time Function
String Words Class

Public Function AverageReadingTime( _
    ByVal vPhrase As Variant _
    , Optional ByVal vWordsPerMinute As Variant _
    , Optional ByVal vNewLinesPerSecond As Variant _
    ) As Variant

Calculate the average reading time for a paragraph of text.
The lines of text can be separated by either line feed (UNIX) or carriage return line feed characters (DOS/Windows).

Examples:
    AverageReadingTime(Gettysburg) = 72.35
    AverageReadingTime(Mayflower) = 75.6
    AverageReadingTime(WrapText(Mayflower, 60)) = 88.8
See also:
    CountCharacters Function
vPhrase: String containing text whose average human reading time is to be calculated. Function returns Null if vPhrase is Null or cannot be fixed up to a String.

vWordsPerMinute: The number of words per minute to use within the calculation. vWordsPerMinute defaults to 200 if it is missing or Null or cannot be fixed up to a number.

vNewLinesPerSecond: The number of new line which can be read per second of time. vNewLinesPerSecond defaults to 2 if it is missing or Null or cannot be fixed up to a number.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.