PA_RelateOne


version 2003


PA_RelateOne (tableNum)

Parameter Type Description
tableNum short Table number

Description

The routine PA_RelateOne activates the many-to-one relation(s) for the current record of the table tableNum .

This works like the 4th Dimension command RELATE ONE , when using the syntax RELATE ONE([aTable]) .

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_RelateMany , PA_UseAutomaticRelations , RELATE ONE .

Error Handling

Use PA_GetLastError to see if an error occurred (bad table number)