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