Hey, thank you for your help.
I tried using your code, but I get the following errors:
Error 1 Invalid token 'foreach' in class, struct, or interface member declaration C:\Users\Lawson\Documents\InfoPath Projects\Hash Test Form 10-22-2010\FormCode.cs 112 17 Hash Test Form 10-22-2010
Error 2 ; expected C:\Users\Lawson\Documents\InfoPath Projects\Hash Test Form 10-22-2010\FormCode.cs 112 38 Hash Test Form 10-22-2010
Error 3 Invalid token '(' in class, struct, or interface member declaration C:\Users\Lawson\Documents\InfoPath Projects\Hash Test Form 10-22-2010\FormCode.cs 112 52 Hash Test Form 10-22-2010
Error 4 Invalid token '+=' in class, struct, or interface member declaration C:\Users\Lawson\Documents\InfoPath Projects\Hash Test Form 10-22-2010\FormCode.cs 116 27 Hash Test Form 10-22-2010
Error 5 Invalid token ';' in class, struct, or interface member declaration C:\Users\Lawson\Documents\InfoPath Projects\Hash Test Form 10-22-2010\FormCode.cs 116 36 Hash Test Form 10-22-2010
Error 6 A namespace does not directly contain members such as fields or methods C:\Users\Lawson\Documents\InfoPath Projects\Hash Test Form 10-22-2010\FormCode.cs 120 17 Hash Test Form 10-22-2010
Any suggestions?