functions

fhGetCurrentRecordSel

Description

Returns a table of currently selected records (from the main application), when the optional parameter is supplied only selected records matching the parameter are returned.

Syntax

fhGetCurrentRecordSel([strTag])

Parameters

strTag
The tag of the record type required. The options are:
INDI Individual
FAM Family
NOTE Note
SOUR Source
REPO Repository
SUBR Submitter
SUBM Submission
OBJE Multimedia Object

Return Value

Record List
A table containing the selected pointer objects.

Example

tblIndi =  fhGetCurrentRecordSel('INDI')
for i=1, #tblIndi do
    fhMessageBox(fhGetDisplayText(tblIndi[i]))
end

Obtains the currently selected Individual records and populates a table of pointers tblIndi. #tblIndi is the number of elements in the table. It then cycles through the records returning each selected records name in turn.