Skip to content

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

@tormozit

Description

@tormozit

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

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

  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions