>how can I make the last code shorter and more clear .
I'd say it's plenty clear, and the only easy way to make it shorter is to drop the switch statement in favor of something like this:
// Find the display index of the selected column
col = column - 'A';
To nitpickers: yes, I know.
Last edited by Narue; Feb 14th, 2008 at 2:03 pm.
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Offline 11,807 posts
since Sep 2004