![]() | ![]() | ![]() |
The Lottery Information Page |
![]() |
Back |
This is a very simple application which generates sets of lottery numbers. Please note that this is the UK National Lottery. The program is about as simple as you can get for Wimpbasic. It has no system calls, requires no events, and has only two windows.
The only difference between this program and others is the ability to produce 99 sets of numbers. This could be useful if you run a syndicate, and you need to generate large sets of numbers.
The numbers are generated and stored in a two dimensional array. The first version of this program didn't even store the numbers, it simply churned them out and printed them straight to screen. The numbers are stored in this version so that the numbers can be saved for printing. Printing was intended to be implemented, but I haven't been able to get it to work. It has turned out to be simpler to write a save routine. To print simply drag the save icon straight into your favourite text editor and print from there.
The batch display window is resized according to the number of number sets generated, and this is done in Procpage. This is the only really interesting piece of code.
![]() |
Back |