Oh I also have a book called VB in a Nutshell, at first it was no use whatsoever as I think it expects you to know VB and is really just a reference manual. When I was doing the toolchange routine for my lathe I was trying to get the PLC to keep indexing the turret until the correct inputs were seen in Mach, thats when I found the Do Loop statement that I used in mine, Panaceabeachbums and yours.
Hood