---
name: "BIS_fnc_onDiaryChanged"
type: function
status: ok
groups: ["Event Handlers"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_onDiaryChanged
revid: 309890
updated: 2022-05-05T12:09:54Z
---

# BIS_fnc_onDiaryChanged

*Function · Event Handlers · Arma 3 v1.00*

## Description

Register code to be executed when diary item changes.

Arguments passed into code are:
    0: DISPLAY - map display
    1: BOOL - true if clicked on subject list, false when on record list (clicking on subject may also trigger record)
    2: STRING - subject name
    3: STRING - record name
    4: ANY - passed arguments (index of onDiaryChanged code when no custom arguments were used)

## Syntax

*syntax inferred from the function header*

```sqf
_this call BIS_fnc_onDiaryChanged
```

**Parameters:**

- `_this` — CODE
  ARRAY - code with custom arguments in format [CODE,ARG1,ARG2,...]
  NUMBER - remove code of given index

**Returns:** NUMBER - index of onDiaryChanged code

## Function header

The comment at the top of the function's file in the game; this page's description, params, syntax, returns come from it.

```sqf
/*
Description:
Register code to be executed when diary item changes.

Arguments passed into code are:
    0: DISPLAY - map display
    1: BOOL - true if clicked on subject list, false when on record list (clicking on subject may also trigger record)
    2: STRING - subject name
    3: STRING - record name
    4: ANY - passed arguments (index of onDiaryChanged code when no custom arguments were used)

Parameter(s):
_this:
    CODE
    ARRAY - code with custom arguments in format [CODE,ARG1,ARG2,...]
    NUMBER - remove code of given index

Returns:
NUMBER - index of onDiaryChanged code
*/
```

<sub>Source: [BI Community Wiki — BIS fnc onDiaryChanged](https://community.bistudio.com/wiki/BIS_fnc_onDiaryChanged) (revision 309890).</sub>
