>#DEFINE ROUGE_LOC RGB(255,0,0) >#DEFINE BRUN_CL_LOC RGB(255,128,0) > > >CREATE CURSOR Temp ( Name c(20) , nPrice N(8,4) ) >INSERT INTO Temp "DUPONT jean" , 14 > > >Brows Field Name , nPrice:IIF( BETW( nPrice , 1 , 9 ) , ROUGE_LOC , BRUN_CL_LOC ) > >>
Use employee _Screen.AddProperty('MyBrowseSet',.F.) Browse Fields ; First_Name :h="First Name of My Employee", ; Last_Name :h="Last Name of My Employee", ; Birth_Date :h="Happy Birthday" ; Name "myBrowse" ; Title 'My Employee Listing' ; When SetGrid(myBrowse) Procedure SetGrid(toGrid) If !_Screen.MyBrowseSet With toGrid .DeleteMark = .F. .RecordMark = .F. .GridLines = 0 .ScrollBars = 2 .AllowRowSizing = .F. .Height = 400 .Width = 600 .SetAll("DynamicBackColor",; "iif(recno()%2=0,0xFFFF00,0x00FFFF)","column") .SetAll("WordWrap",.T.,"header") .HeaderHeight = .HeaderHeight * 3 .SetAll("Width",100,"Column") *... Endwith _Screen.MyBrowseSet=.T. Endif endprocCetin