# null

# TestGetWaitFrFrameData

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

## Function Syntax

* `long TestGetWaitFrFrameData (frFrame aFrame);`
* `long TestGetWaitFrFrameData (dword index, frFrame aFrame);`

## Description

If a valid FlexRay frame is the last event that triggers a wait instruction, the frame’s content can be called up with the first function.

The second function can only be used for "joined events". The number of the "joined event" (return value of `testJoin...`) is here being used as an index.

## Parameters

* **aFrame**: A [FrFrame](../../FlexRay/Objects/CAPLfunctionFRFrame.md) variable that should be filled in with this function.
* **Index**: Number of the "joined event" corresponds with the return value of `testJoin...`.

## Return Values

* **0**: Data access successful
* **-1**: Data access could not be executed, the last event was not a FlexRay frame event

## Example

For an example see function [TestWaitForFrFrame](CAPLfunctionTestWaitForFrFrame.md).

[TestWaitForFrFrame](CAPLfunctionTestWaitForFrFrame.md) • [TestJoinFrFrameEvent](CAPLfunctionTestJoinFrFrameEvent.md)
