Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

СписокЗначений.Добавить() - Недостаточно фактических параметров #1452

Open
tormozit opened this issue Sep 28, 2024 · 2 comments

Comments

@tormozit
Copy link

tormozit commented Sep 28, 2024

Опишите ошибку
Добавляю в список значений элемент без параметров. Получаю ошибку.

Воспроизведение ошибки

  1. Запустить код ...
СписокЗначений = Новый СписокЗначений;
СписокЗначений.Добавить();

ScriptEngine.Machine.RuntimeException: {Модуль C:\Portable\TurboConf\user_scripts\RDT.os / Ошибка в строке: 4277 / Недостаточно фактических параметров}
ЗаполнитьЗначенияСвойств(СписокЗначений.Добавить(), ЭлементСписка); в ScriptEngine.Machine.MachineInstance.PrepareContextCallArguments(Int32 arg, IRuntimeContextInstance& context, Int32& methodId, IValue[]& argValues)
в ScriptEngine.Machine.MachineInstance.ResolveMethodFunc(Int32 arg)
в ScriptEngine.Machine.MachineInstance.MainCommandLoop()
в ScriptEngine.Machine.MachineInstance.ExecuteCode()
в ScriptEngine.Machine.MachineInstance.ExecuteMethod(IRunnable sdo, Int32 methodIndex, IValue[] arguments)
в ScriptEngine.Machine.Contexts.ScriptDrivenObject.CallAsFunction(Int32 methodNumber, IValue[] arguments, IValue& retValue)
в TurboConf.HostApplication.HostApplicationForm.ExecuteScript(Script script, Keys ctrl, Keys alt, Keys shift, ScreenForm statusForm, String entryPoint, ScriptOptions options, IVariable[] parameters)

Ожидаемое поведение
Ожидал отсутствие ошибки

Окружение

  • ОС: Windows
  • Версия: 1.9
@nixel2007
Copy link
Collaborator

Разве первый параметр не обязательный в 1с?

@tormozit
Copy link
Author

Разве первый параметр не обязательный в 1с?

Да. Всегда так было.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants