{"name":"BIS_fnc_onDiaryChanged","title":"BIS fnc onDiaryChanged","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_onDiaryChanged","revid":309890,"updated":"2022-05-05T12:09:54Z","groups":["Event Handlers"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Register code to be executed when diary item changes.\n\nArguments passed into code are:\n    0: DISPLAY - map display\n    1: BOOL - true if clicked on subject list, false when on record list (clicking on subject may also trigger record)\n    2: STRING - subject name\n    3: STRING - record name\n    4: ANY - passed arguments (index of onDiaryChanged code when no custom arguments were used)","syntaxes":[{"syntax":"_this call BIS_fnc_onDiaryChanged","params":[{"name":"_this","type":"Code, Array, Number","type_expr":"Code | Array | Number","description":"CODE\nARRAY - code with custom arguments in format [CODE,ARG1,ARG2,...]\nNUMBER - remove code of given index","text":"CODE\nARRAY - code with custom arguments in format [CODE,ARG1,ARG2,...]\nNUMBER - remove code of given index","source":"docblock"}],"returns":{"type":"Number","type_expr":"Number","description":"index of onDiaryChanged code","text":"NUMBER - index of onDiaryChanged code","source":"docblock"},"inferred":true}],"docblock":{"text":"Description:\nRegister code to be executed when diary item changes.\n\nArguments passed into code are:\n    0: DISPLAY - map display\n    1: BOOL - true if clicked on subject list, false when on record list (clicking on subject may also trigger record)\n    2: STRING - subject name\n    3: STRING - record name\n    4: ANY - passed arguments (index of onDiaryChanged code when no custom arguments were used)\n\nParameter(s):\n_this:\n    CODE\n    ARRAY - code with custom arguments in format [CODE,ARG1,ARG2,...]\n    NUMBER - remove code of given index\n\nReturns:\nNUMBER - index of onDiaryChanged code"},"filled_from_docblock":["description","params","syntax","returns"]}