Boolean value to string

Stimulsoft Reports.NET discussion
Post Reply
cuthbertdavies
Posts: 1
Joined: Thu Feb 15, 2024 1:22 pm

Boolean value to string

Post by cuthbertdavies »

Hi,
I have a field from Datasource that is a boolean.

I want to write and display "START" when this field is 1, otherwise "STOP".
How i can do? I done this with calculated field and variables, but i don't think is the right solution.
Does i display it with an "Indicator" component?
Lech Kulikowski
Posts: 6433
Joined: Tue Mar 20, 2018 5:34 am

Re: Boolean value to string

Post by Lech Kulikowski »

Hello,

As a way, you can add a calculated column with the expression:
IIF(datasourcename.columnname == 1, "START", "STOP")

And the use this variable.

Thank you.
Post Reply