Yes, that is a lot cleaner from a code point of view, but the original query was how to convert the adcx.bas code to give 100 samples per second. I believe that sample code was written long before PBP acquired the ADCIN command and would be valid for any version. ADCIN is actually overkill, as it is simpler and more code efficient to just access the registers directly.
Bookmarks