Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamicfontbold 1

Status
Not open for further replies.

KoenPiller

Programmer
Apr 4, 2001
270
0
0
NL
Hi,

With this code I expect to have alternate bold / normal font, however nothing happens. Anybody to give me a clue?

Code:
thisform.MyGrid.SetAll("dynamicfontBold",;
		"IIF(RECNO()%2 = 0,[.T.],[.F.])","Column")

Thanks,

Koen

p.s. this question was previously posted in the "general foxpro coding forum" however deleted overthere as it should have been posted in this forum
 
Your issue is that the return need to be logical. You might also need to refresh. In your other post, which was removed aparently, someone else also pointed out that the .t./.f. doesn't need to be explicit. Thus:

Code:
thisform.MyGrid.SetAll("DynamicFontBold",;
        "IIF(RECNO()%2=0,.t.,.f.)","Column")

*or

thisform.MyGrid.SetAll("DynamicFontBold",;
        "RECNO()%2=0","Column")
        
thisform.MyGrid.refresh

Brian
 
Brian,

Thanks for taking the time to re-reply me with a correct question!

This removal action : indeed not so user friendly. Not only that it is arbitrarly, it is also not so polite towards the members who took the time to reply. Anyway thanks aganain, your answer worked as expected.

Koen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top