For example:
I have a table called "Client"
Name C(50), Sex L, Age d ... and so on
so I will put in Init event of oGrid & every time the grid refresh
oGrd.recordsource = "Client"
ogrd.SetAll("DynamicBackColor", "thisform.getAge(age,sex)", "Column")
Please remind that you should "reset" the grid before changing the table's data
oGrd.recordsource = ""
ogrd.SetAll("DynamicBackColor", "", "Column")
Otherwise, error code is generated.
Best regards,
Aaron Chu
********************************************************
Working with Visual FoxPro is a lot of FUN!
********************************************************