You will find it easier if instead of creating a single 7-digit number, you create a 7 element array of single digits. The you can access each element of the array (digit) by a simple array index.
JamesCherrill
... trying to help
8,516 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,455
Skill Endorsements: 30