-
Notifications
You must be signed in to change notification settings - Fork 114
Closed
Description
Турбоконф 6.4.9
ОСкрипт 1.9.3
https://turboconf.ru/Tasks/10527
При передаче в прикладной метод обращения по числовому индексу к структуре
Функция Тест(Знач Строка)
КонецФункции
Ф = Новый Структура;
Тест(Ф[0]);
возникает необработанная ошибка
System.ArgumentOutOfRangeException: Индекс за пределами диапазона. Индекс должен быть положительным числом, а его размер не должен превышать размер коллекции.
Имя параметра: index
в System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
в OneScript.Language.LexicalAnalysis.SourceCodeIterator.GetCodeLine(Int32 lineNumber)
в ScriptEngine.Machine.MachineInstance.SetScriptExceptionSource(RuntimeException exc)
в 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)
Ожидалась обработанная ошибка с указанием строки скрипта.
Metadata
Metadata
Assignees
Labels
No labels