you need to use the val() command, otherwise kix will treat $QUe like a string and not an integer.

code:

?" ENTER THE QUE IE. AMAPPP"
?""
GETS $QUe
$QUe = val("$QUe")
goto COUNTER

:COUNTER
$Que = $QUe + 1
if $QUe = 155
goto END
else
$q = open(1,"c:\QUE.TXT",5)
$q = WRITELINE(1,"$QUe")
goto COUNTER
endif

:END
EXIT


Bryce (glad to have the BB back! and not gald that my vacation is over )