LifeLines Programmers Reference

Version 3.0.2

up | previous | next | Tom Wetmore | ttw@shore.net | LifeLines


User Interaction Functions

These functions interact with the user to get information needed by the program.

FunctionDescription
void getindi(indi_v [,string]) Getindi asks the user to identify a person. The first argument is a variable set to the person. The second argument is an optional prompt string.
void getindiset(set_v [,string]) Getindiset asks the user to identify a set of persons. The first argument is a variable set to a set of persons. The second argument is an optional prompt string.
void getfam(fam_v) Getfam asks the user identify a family. The argument is a variable set to the family.
void getint(Int_v [,string]) Getint asks the user to provide integer input. The first argument is a variable set to the integer. The second argument is an optional prompt string.
void getstr(string_v [,string]) Getstr asks the user to provide string input. The first argument is a variable set to the string. The second argument is an optional prompt string.
indi choosechild(indi|fam) Choosechild asks the user select a child of a family or person; its single argument is a person or family; it returns the selected child.
fam choosefam(indi) Choosefam asks the user to select a family that a person is in as a spouse; its argumentis a person; it returns the selected family.
indi chooseindi(set) Chooseindi asks the user to select one person from a set of persons; its argument in a set of persons; it returns the selected person.
indi choosespouse(indi) Choosespouse asks the user to select a spouse of a person; its argument is a person; it returns the selected spouse.
set choosesubset(set) Choosesubset asks the user to select a subset of persons from a set of persons; its argument is the chosen subset; it returns the selected subset.
int menuchoose(list [,string]) Menuchoose asks the user to select from an arbitrary menu. The first argument is a list of strings making up the items in the menu; the second, optional argument is a prompt string for the menu; menuchoose returns the integer index of the item selected by the user; if the user doesn't select an item, zero is return.

up | previous | next | Tom Wetmore | ttw@shore.net | LifeLines

1/1/00