Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox
Message
De
27/09/1996 10:41:47
Sonny Chouinard
CHCA Computer Systems Inc.
Lachenaie, Québec, Canada
 
 
À
26/09/1996 14:06:20
Otto Marais
Computer House In Processing
Pretoria, Afrique du Sud
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00008240
Message ID:
00008659
Vues:
30
>>>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform