954,582 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

show boolean type in msflexgrid

Hi All,

I am using a msflexgrid to display my access database (not editing it in run time).

But, I have one column which is a boolean.
When I display it, that boolean column doesn't show as "True/ False" or "Yes/ No".
It is shown as " -1 / 0 " ... that's not so informative at all.

How can I show it as True/ False?

thanks,

neosonic

neosonic
Junior Poster
137 posts since Nov 2009
Reputation Points: 22
Solved Threads: 1
 

Make use of an if then statement, something like -

With MSFlexGrid1
            If .TextMatrix(iRow, iCol) = "-1" Then
                .TextMatrix(iRow, iCol) = "False"
            Else
                .TextMatrix(iRow, iCol) = "True"
            End If
        End With
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

:) thanks buddy, you are the best!!!
it works perfectly

neosonic
Junior Poster
137 posts since Nov 2009
Reputation Points: 22
Solved Threads: 1
 

It wasa pleasure. Happy coding.:)

AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You