Converting String to Integer
Posted: Wed May 23, 2018 2:33 pm
I am trying to write an expression to convert string fields into integers. The software that uses Stimulsoft collects a large amount of data via text boxes that are actually numbers and we'd like to be able to use Math equations (+, -, *, /) on those numbers.
From what I've gathered, the way to do this within Stimulsoft is to use int.Parse(string) or double.Parse(string) however when I do that via variable, I am getting an error from Stimulsoft stating: "Exception has been thrown by the target of an invocation"
If I do a test and put int.Parse("24") then 24 will come out as a number and int.Parse("24") / 3 will return 8. However anytime I bring a DB Table/Field into it, I get that error. I'm using the web version of Stimulsoft. Has anyone seen this issue or know of a potential resolution?
Thank you!
From what I've gathered, the way to do this within Stimulsoft is to use int.Parse(string) or double.Parse(string) however when I do that via variable, I am getting an error from Stimulsoft stating: "Exception has been thrown by the target of an invocation"
If I do a test and put int.Parse("24") then 24 will come out as a number and int.Parse("24") / 3 will return 8. However anytime I bring a DB Table/Field into it, I get that error. I'm using the web version of Stimulsoft. Has anyone seen this issue or know of a potential resolution?
Thank you!