Hi all
I'm a newbie to VB and such, I'm currently working on a program that allows users to play the National Lottery. The program generates random numbers for a lucky dip, allows users to log in etc. The problem I'm having is the feature that allows users to input their own results and check them against the 'current results' (just a randomised list of numbers) and work out what prizes if any the user is entitled to.
Now obviously there are many different combinations of which numbers are the same. My question is:
Is there any way (short of writing an IF statement catering for each combination possible) I could check these results? Perhaps with the use of a loop? I don't know I'm very new to this.
Any help would be greatly appreciated.
I'm a newbie to VB and such, I'm currently working on a program that allows users to play the National Lottery. The program generates random numbers for a lucky dip, allows users to log in etc. The problem I'm having is the feature that allows users to input their own results and check them against the 'current results' (just a randomised list of numbers) and work out what prizes if any the user is entitled to.
Now obviously there are many different combinations of which numbers are the same. My question is:
Is there any way (short of writing an IF statement catering for each combination possible) I could check these results? Perhaps with the use of a loop? I don't know I'm very new to this.
Any help would be greatly appreciated.