And here's the current code (standalone test program) if anybody wants to play with it or point out how much single-letter variable names suck or whatnot.. :-) Rich