It shouldn't be difficult use afields()and reccount() for the table and substitute in for the hard coded 1 to 8 for the column and row count. Any idea how to relabel the Legend that now shows "R1" to "R8" for rows 1-8 and the "C1" to "C8" labels on the x axis.
Sammie
It's really easy - isn't it!
I am impressed that VFP's command window allows us to drive objects (even offers an auto-complete). I don't know how compiler projects without this feature are able to survive without a building full of developers. I have dissected some complicated objects (even for projects in other languages) with the VFP command window. I think "Command" is VFPs most underbilled yet most powerful feature.
Imagination is more important than knowledge