From a9436842b93e3638bc61c85cd425552dc015d4d1 Mon Sep 17 00:00:00 2001 From: "transifex-integration[bot]" <43880903+transifex-integration[bot]@users.noreply.github.com> Date: Mon, 27 Mar 2023 17:25:10 +0000 Subject: [PATCH] Apply translations in en 100% translated for the source file 'docs/diagnostics/MissedRequiredParameter.md' on the 'en' language. --- .../en/diagnostics/MissedRequiredParameter.md | 31 ++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/docs/en/diagnostics/MissedRequiredParameter.md b/docs/en/diagnostics/MissedRequiredParameter.md index 75653101c70..1c260e27cd0 100644 --- a/docs/en/diagnostics/MissedRequiredParameter.md +++ b/docs/en/diagnostics/MissedRequiredParameter.md @@ -2,15 +2,32 @@ ## Description - +Required parameters must not be omitted when calling methods, otherwise the value `Undefined` will be passed to the parameter, which the method often cannot process. +If the value `Undefined` is valid, then you need to +- explicitly pass a value +- or make the parameter optional with a default value of `Undefined`. ## Examples - + +For example + +```bsl +Procedure ChangeFormFieldColor(Form, FiledName, Color) +``` + +Incorrect: + +```bsl +ChangeFormFieldColor(,"Result", StyleColors.ArthursShirtColor); // missing first parameter Form +ChangeFormFieldColor(,,); // missing all required parameters +``` + +Correct: + +```bsl +ChangeFormFieldColor(ThisObject, "Result", Color); // all required parameters are specified +``` ## Sources - - +[Parameters of procedures and functions (RU)](https://its.1c.ru/db/v8std#content:640:hdoc)