Hi Ian, thanks for the sample code. I copied it into a prg and ran and it's coming up with an error "Missing Operand". So instead I copied the lcCode variable which contains the program code to a file and I managed to get a sample working with two numbers and three numbers as well.
My Regards
John Hussey