Ty for the help guyz as usal i have attempted to take the easiest way
and everything appears to work except this;
while (num != null)
I am using this to handle the spaces i dont want them to go through the process at all, so how do i repesent this within a int? I havent been able to find an answer my full code is below (btw im using this as a serpate class to my gui) first attempt at a profesional program
Also whislt im at it I will describe the method to check for ABN (Australian Business Number)
For example 53 004 085 616
first take 1 from the first number
43 004 085 616
now apply a weigthing factor besides the first one the
pattern is the old number plus 2 eg.
(4x10)+(3x1)+(0x3)+(0x5)+(4x7)+(0x9)+(8x11)+(5x13)+(6x15)+(1x17)+(6x19) =445
Then mod this by 89 and see if there is any remainder if there isnt then it its a valid ABN Number
445/89 = 5 remainder 0
[ May 18, 2004: Message edited by: Peter Shipway ]