04-05-2005, 08:47 PM
ok heres my code
when the name that is stored in names.dat = namein$ it goes to 20 like it should but when it reaches namef$="end" it kinda freezes and doesnt goto 25 why can somebody please help
Code:
START$="WHAT IS YOUR NAME"
LOCATE 5,3:PRINT START$
LOCATE 6,3:INPUT NAMEIN$
DO
OPEN "NAMES.DAT" FOR INPUT AS#1
INPUT #1,NAMEF$
IF NAMEF$=NAMEIN$ THEN GOTO 20
IF NAMEF$="END" THEN GOTO 25
LOOP
20
CLOSE
LOCATE 20,5:PRINT " YOUR NAME IS IN MY LIBRARY CREATING PROFILE"
GOTO 40
25
COLOR 4
LOCATE 10,5:PRINT "YOUR NAME IS NOT IN MY LIBRARY"
40
SLEEP 3000
when the name that is stored in names.dat = namein$ it goes to 20 like it should but when it reaches namef$="end" it kinda freezes and doesnt goto 25 why can somebody please help