Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamicfontbold not bold
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01566879
Message ID:
01566937
Views:
57
Thanks

>>i have this for a grid column's dynamicfontbold in a method:
>>
>>
>>
>>nx1	= 30 * THISFORM.nHorCnt
>>nx2	= 17 * THISFORM.nVertCnt
>>
>>
>>LOCATE
>>
>>thisform.ResizeGrid1()
>>THISFORM.grd1.RECORDSOURCE = [ccXWORD]
>>
>>THISFORM.grd1.COLUMNCOUNT  = THISFORM.nHorCnt
>>THISFORM.grd1.SETALL( [width], 22, [COLUMN] )
>>
>>FOR I = 1 TO THISFORM.nHorCnt
>>	THISFORM.grd1.COLUMNS[m.i].DYNAMICBACKCOLOR = [IIF ( NOT ISALPHA( col] + TRANSFORM(m.I) + [)   AND val( col] + TRANSFORM(m.I) + [)=0 , rgb(255,0,0), rgb(255,255,255) )]   <---------------- WORKING
>>
>>	lcX1 = [IIF (ISALPHA( col] + TRANSFORM(m.I) + [) , .T., .F.) ]
>>	THISFORM.grd1.COLUMNS[m.i].DYNAMICfontbold = lcX1     <------------- not working 
>>
>>ENDFOR
>>
>>
>>
>>see attachment, it is not bold in column1 (the filedname is col1)
>>the dynamiv backcolor works
>>
>>what do i do wrong??
>>
>>thanks
>>
>>
>>Peter
>
>Remove spaces, like:
>
>lcX1 = [IIF(ISALPHA(col] + TRANSFORM(m.I) + [) , .T., .F.)]
>
>Also, you can use grid.setall method instead of do it in the loop.
>
>Best Wishes
Peter Cortiel
Previous
Reply
Map
View

Click here to load this message in the networking platform