General information
Category:
Coding, syntax & commands
>>>>>In addition to my previous question concerning textboxes, maybe the following is a better illustration of what I want.
>>>>>Asume a database with 'LOGIC' as a logical field, a grid displaying all the fields of that database including 'LOGIC'.
>>>>>When I use the default grid functions 'True' or 'False' is used. But that is not what I want. If LOGIC is TRUE the grid should display: 'Correct' or 'Failed' if LOGIC is FALSE.
>>>>>
>>>>>Michel
>>>>
>>>>In the 'When' Event or in the property 'VALUE', you should do a IIF statement like IIF(record == .T., return 'CORRECT', RETURN 'FAILED') or something like that.
>>>>
>>>>I didn't experiment the statement but it seems logic to me.
>>>
>>>It will not work in the When method.
>>>
>>>Vlad
>>
>>Try the programmatic change event.
>
>You can also do the following:
>
>Set the ControlSource property to a user funtion returning the nessecary value required if 'IIF()' is not sufficient enough. I am using this often in my programs.
>
>Ex. ThisForm.Grid1.Column1.ControlSource = 'MyFunc(LOGIC)'
>
>Hope this helps
>
>Otto.
This one should work great. Thanks
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only