Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox
Message
From
27/09/1996 10:41:47
Sonny Chouinard
CHCA Computer Systems Inc.
Lachenaie, Quebec, Canada
 
 
To
26/09/1996 14:06:20
Otto Marais
Computer House In Processing
Pretoria, South Africa
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00008240
Message ID:
00008659
Views:
31
>>>>>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
Map
View

Click here to load this message in the networking platform