# null

# TestJoinMostReportEvent

[Valid for](../../../Shared/FeatureAvailability.md): CANoe DE

## Function Syntax

* `long TestJoinMostReportEvent (int aFBlockId, int aInstanceId, int aFunctionId)`
* `long TestJoinMostReportEvent (char[] aSymbolicMessage, int aFunctionId)`
* `long TestJoinMostReportEvent (char[] aSymbolicMessage)`

## Description

Completes the current set of "joined events" with the transmitted event, a MOST response message (Report, OpType > 8, MOST control message or MOST spy message). This function does not wait.

**Note:** Consider to set always the appropriate bus context in a multibus environment before the function is called. Further information on site [MultiBus Environment](../../../Shared/CAPL/General/TestMultiBusEnvironment.md).

## Parameters

**Note:** For parameters **aFBlockId**, **aInstanceId** and **aFunctionId** the following applies: If **-1** is given, the corresponding field can get any value. This is also the standard for not explicit set values.

* **aFBlockId**: Numeric value of FBlockID
* **aInstanceId**: Numeric value of InstanceID
* **aFunctionId**: Numeric value of FunctionID
* **aSymbolicMessage**: Symbolic MOST message definition in one of the following formats:
  * FBlock.InstanceId.Function
  * FBlock.Function
  * FBlock

(see also [Symbolic definition of MOST messages](../CAPLfunctionsTFSSymbolicMessageDefinition.md))

## Return Values

* **-6**: Parse Error; on specification of a symbolic message definition that cannot be resolved with the available XML function catalog or that is flawed
* **-3**: Join error
* **-1**: General error e.g. the functionality is not available
* **> 0**: Number of joined events

## Example

—

[TestJoinMostSpyReportEvent](CAPLfunctionTestJoinMostSpyReportEvent.md) • [TestWaitForAllJoinedEvents](CAPLfunctionTestWaitForAllJoinedEvents.md) • [TestWaitForAnyJoinedEvent](CAPLfunctionTestWaitForAnyJoinedEvent.md) • [TestwaitForMostMessage](CAPLfunctionTestWaitForAnyJoinedEvent.md) • [TestWaitForMostReport](CAPLfunctionTestWaitForMostReport.md) • [TestJoinMostMessageEvent](CAPLfunctionTestJoinMostMessageEvent.md) • [TestGetWaitEventMostMsgData](CAPLfunctionTestGetWaitEventMostMsgData.md)
