Filters with Numerical
Filters with Numerical
Hello
Filters with Numerical
I expressions with numerical values where int functioning properly:
PatoMovim.MovHaberMa >= (int)PatoMovim.Parameters["@Value"]. ParameterValue
but it does not work with float
PatoMovim.MovHaberMa >= (float)PatoMovim.Parameters ["@ Value"]. ParameterValue
Error:
Method: [DatosPatoMovim__GetFilter]
Specified cast is not valid.
How should I do?
thanks you
Patricio
Filters with Numerical
I expressions with numerical values where int functioning properly:
PatoMovim.MovHaberMa >= (int)PatoMovim.Parameters["@Value"]. ParameterValue
but it does not work with float
PatoMovim.MovHaberMa >= (float)PatoMovim.Parameters ["@ Value"]. ParameterValue
Error:
Method: [DatosPatoMovim__GetFilter]
Specified cast is not valid.
How should I do?
thanks you
Patricio
Filters with Numerical
Please try to modify your expression as follows:
Thank you.
Code: Select all
(floaf)PatoMovim.MovHaberMa >= (float)PatoMovim.Parameters ["@ Value"]. ParameterValue
Filters with Numerical
Hello Edward
This did not work
Again
---------------------------
Method: [DatospatoMovim__GetFilter]
Specified cast is not valid.
---------------------------
Thank you.
This did not work
Again
---------------------------
Method: [DatospatoMovim__GetFilter]
Specified cast is not valid.
---------------------------
Thank you.
Filters with Numerical
Please change your expression as follows and it'll work:
Also please set type of the parameter to double too, if it possible.
This is just a temporary solution.
The issue with converting will be fixed a bit later.
Thank you.
Code: Select all
(double)PatoMovim.MovHaberMa >= (double)PatoMovim.Parameters ["@ Value"]. ParameterValue
This is just a temporary solution.
The issue with converting will be fixed a bit later.
Thank you.
Filters with Numerical
Hello Edward
This did not work
(double)PatoMovim.MovHaberMa >= (double)PatoMovim.Parameters ["@ Value"]. ParameterValue
Error :
Method: [DatospatoMovim__GetFilter]
Specified cast is not valid.
The solution is:
System.Convert.ToDouble(PatoMovim.MovHaberMa) >= System.Convert.ToDouble(PatoMovim.Parameters ["@ Value"]. ParameterValue)
Thank you.
This did not work
(double)PatoMovim.MovHaberMa >= (double)PatoMovim.Parameters ["@ Value"]. ParameterValue
Error :
Method: [DatospatoMovim__GetFilter]
Specified cast is not valid.
The solution is:
System.Convert.ToDouble(PatoMovim.MovHaberMa) >= System.Convert.ToDouble(PatoMovim.Parameters ["@ Value"]. ParameterValue)
Thank you.
Filters with Numerical
Thank you very much for this tip. It really works for any type of the parameter! :biggrin:
And it is not necessary to change the type of the parameter from int to double.
Thank you.
And it is not necessary to change the type of the parameter from int to double.
Thank you.