Convert String to Integer

Stimulsoft Reports.NET discussion
Post Reply
Vermesser
Posts: 2
Joined: Fri Jun 16, 2017 9:32 am

Convert String to Integer

Post by Vermesser »

Hello,

how is it possible to convert a String Output to a Integer?

Example:

{Left(StringValue,IIF(StringValue.IndexOf("xxx")==29,33,3))}


I need to convert the IIF Output from a String to a Integertyp, how does this work?

Best regards
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Convert String to Integer

Post by Alex K. »

Hello,

Please try to use the following expression:

Code: Select all

{Left(StringValue,(StringValue.IndexOf("xxx")==29?33:3))}
Thank you.
Vermesser
Posts: 2
Joined: Fri Jun 16, 2017 9:32 am

Re: Convert String to Integer

Post by Vermesser »

Hello,

it works


Thank you very much!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Convert String to Integer

Post by Alex K. »

Hello

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.
Post Reply