Thank you cétin.
All functions very well with the clause refresh().
Sorry and thank you still.
bernhart
>Bonjour :)
>It does. Dynamic* properties are evaluated when a refresh occurs. If you're doing that from outside of grid call grid.refresh.
>PS: As I said if that's your real expression it's not dynamic, directly set column's FonStrikeThru property to .t. instead.
>Cetin
>
>>Bonjour Cétin,
>>
>>
>> WITH oGrid.Column1
>> .DYNAMICFONTSTRIKETHRU = [ .T. ]
>> ENDWITH
>>
>>
>>it does not function ?
>>
>>
>>
>>
>>>>Hi all,
>>>>
>>>>
>>>>I test DynamicFontStrikeThru Clause in a grid but it does not function.
>>>>
>>>>
>>>>WITH oGrid.Column10
>>>> .FORMAT = "KZR"
>>>> .INPUTMASK = "99.9"
>>>> .ALIGNMENT = 2
>>>> .DynamicInputMask = ;
>>>[ IIF( INT( v_trimestre_lignes.nan_ponderee ) <> ]+;
>>>[v_trimestre_lignes.nan_ponderee , '@KZR 99.99' , '@KZR 99' )]
>>>> .DYNAMICFONTSTRIKETHRU = [ IIF( 1 + 1 = 2 , .T. , .F. ) ]
>>>> ENDWITH
>>>>
>>>>
>>>>Who can explain me what occurs?
>>>>VFP 8
>>>>WINDOWS XP
>>>>
>>>>
>>>>Thank in advance for help.
>>>>
>>>>MILCENT bernhart
>>>
>>>Milcent,
>>>I couldn't see something dynamic in that expression. It is same as saying :
>>>
>>>IIF( .T. , .T. , .F. ) or directly .T.
>>>
>>>If this is your real expression directly set FontStrikeThru. If is ther for sampling then missing piece is outer parentheses :
>>>
>>>.DYNAMICFONTSTRIKETHRU = [( IIF( 1 + 1 = 2 , .T. , .F. ) )]
>>>
>>>FWIW always have outer parentheses in your dynamic* expressions.
>>>Cetin