MP, I'm sorry, that's way beyond me. Do all possible numbers need entering into the list-I can't believe that would be the case? If so that would rule out its use here (it would leaving me needing to create a random? list up to 1000). I can find evidence that VL-SOME is an autolisp function, but nothing to suggest what it might do. What do FIXED and RESULT need to be set to? How do distof, x, and base get generated? I assume one of them is the test string?
CAB, I assume your use of DISTOF is the one MP created? Similarly or seem to need to process through all possible values?
Gile, this seems to be closest to what I want. I assume that this will work on an non-number string without crashing? Would I use it:
<code>
(IF
(numberp (READ txt))
(SETQ txt2 (ATOI txt))
)
</code>
Typical data are plot numbers on an housing estate, so values are always integers, starting from 1 up to about 600. In terms of settings I'm going up to about 1000, purely because I can't imagine a situation where a greater value would be required/encountered. I will go on to manipulate the number (comparison, addition or subtraction) I just want to ensure the string is indeed a number to avoid errors and crashed.
dJE