A snippet from your code:

quote:

GETS $LineNumber
IF $LineNumber = ""
MESSAGEBOX ("You MUST Type The Line Number of the File To Print.","File Name",64,5)
@ERROR = 0
ENDIF
IF $LineNumber =>1 or $LineNumber =<15

try:
if val($LineNumber) =>1 or val($LineNumber) =< 15

at the moment, the mathematical great/less/equals sees $lineNumber purely as a "text" value as opposed to a numerical value. Due to it not being a numerical value at all, it seems to just ignore if statement and move on....

Hope this does the trick....

------------------
Paul Moxey
POS & Senior Network Administrator
Taubmans Pty Ltd
Paul_Moxey@taubmans.com.au

_________________________
Paul Moxey POS & Senior Network Administrator BarloworldCoatings (AUST) Pty Ltd