Exception:不支持的格式转换,目标类型:Integer 源对象:System.String <35y ex:no viable alternative at input '<' at line 1:1 extraneous input 'y' expecting EndOfFile at line 1:4no viable alternative at input '<' at line 1:1 extraneous input 'y' expecting EndOfFile at line 1:4no viable alternative at input '<' at line 1:1 extraneous input 'y' expecting EndOfFile at line 1:4

报错信息

InvalidCastException: 不支持的格式转换,目标类型:Integer  源对象:System.String  <35y ex:no viable alternative at input '<' at line 1:1
extraneous input 'y' expecting EndOfFile at line 1:4
StackTrace:
   at Quicker.Domain.Actions.X.Variables.VariableHelper.ConvertToType(VarType type, Object value)
   at Quicker.View.Forms.Controls.FormDropdownControl.GetInputValue()
   at Quicker.View.Forms.Controls.FormFieldWrapper.GetInputValue()
   at Quicker.View.Forms.FormWindow.J01usf4U3NCmFUZeKw27(Object )
   at Quicker.View.Forms.FormWindow.cyoD5YK27S1(Object  , FormField  )
   at Quicker.View.Forms.Controls.BaseFormFieldControl.TriggerValueChange(FormField field)
   at Quicker.View.Forms.Controls.FormFieldWrapper.s8mDRk3pQZ4(Object  , FormField  )
   at Quicker.View.Forms.Controls.BaseFormFieldControl.TriggerValueChange(FormField field)
   at Quicker.View.Forms.Controls.FormDropdownControl.CbValue_OnSelectionChanged(Object sender, SelectionChangedEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.Controls.ComboBox.OnSelectionChanged(SelectionChangedEventArgs e)
   at System.Windows.Controls.Primitives.Selector.SelectionChanger.End()
   at System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(ItemInfo info, Boolean assumeInItemsCollection)
   at System.Windows.Controls.ComboBox.NotifyComboBoxItemMouseUp(ComboBoxItem comboBoxItem)
   at System.Windows.Controls.ComboBoxItem.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

EvaluationException: no viable alternative at input '<' at line 1:1
extraneous input 'y' expecting EndOfFile at line 1:4
StackTrace:
   at NCalc.Expression.Evaluate()
   at Quicker.Domain.Actions.X.XActionHelper.EvaluateExpression(String expression)
   at Quicker.Domain.Actions.X.Variables.VariableHelper.KuKleDtEfu6(String  )
   at Quicker.Domain.Actions.X.Variables.VariableHelper.dpIlvyp5btl(Object  )
   at Quicker.Domain.Actions.X.Variables.VariableHelper.ConvertToType(VarType type, Object value)

EvaluationException: no viable alternative at input '<' at line 1:1
extraneous input 'y' expecting EndOfFile at line 1:4
StackTrace:
   at NCalc.Expression.Compile(String expression, Boolean nocache)
   at NCalc.Expression.HasErrors()

 

解决方法

暂无解决方案。

相关信息
0 查看
2024-09-22 12:34
Quicker版本
版本 反馈次数