Functions (all)

GetDataWarning

Function Name:

GetDataWarning

Description:

Returns a warning message about a given data item if Family Historian can detect any possible problems with it. If there are no known issues, it will return an empty string. At present, warnings are only ever given about dates, but in the future that might change. Here are some examples of the the kind of warnings that might be given about a date:

  • the date is invalid (e.g. 31st of a month that only has 30 days) 
  • the date would imply that the person was born before one or both of their parents 
  • the date would imply that certain post-death activities (e.g. burial, cremation, or probate) took place before the person died 
  • the date would imply that the person had a child at a much younger age, or at a much older age, than would normally be expected *
  • the date would imply that the person married at a much younger age, or at a much older age, than would normally be expected*
  • the date would imply that the person did things such as getting married, after they'd died 
  • the date would imply that the person did things such as getting married, before the were born 

Of course there may be more than one concern about any given data item. An index parameter allows you to specify which warning you want.

*The values used for the "expected" warnings are based on those maintained in the Estimates tab of Preferences

Minimum FH Version:
5.0
No. of Parameters:
2
Return Type:
Text
Parameter 1:
A data item to use as a starting point. Usually a date.
Parameter 2:
A number giving the index of the required warning. Use 1 for the first warning, 2 for the second, and so on.
Examples:

=GetDataWarning(%INDI.DEAT.DATE%, 1)