|
![]() |
![]() |
version 2003
PA_RelateMany (tableNum)
Parameter | Type | Description | |
tableNum | short | → | Table number |
Description
The routine
PA_RelateMany
establishes all One-to-Many relations for the table
tableNum
.
It changes the current selection for each table that has a One-to-Many relation to the table
tableNum
.
Example
Activate all relations after using
PA_GotoRecord
.
void GotoRecordAndRelations(short tableNum, long recordNum)
{
PA_GotoRecord(tableNum, recordNum)
if(PA_GetLastError() == eER_NoErr)
{
PA_RelateOne(tableNum);
PA_RelateMany(tableNum);
}
}
See Also
PA_RelateOne , PA_UseAutomaticRelations , RELATE MANY .
Error Handling
Use
PA_GetLastError
to see if an error occurred (bad table number)