Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!iuvax!cica!mr From: mr@cica.cica.indiana.edu (Michael Regoli) Newsgroups: comp.databases Subject: Re^4: dBASE IV - is this for real? Message-ID: <21@cica.cica.indiana.edu> Date: 12 Jul 89 18:05:00 GMT References: <11@cica.cica.indiana.edu> <3520001@hpindda.HP.COM> <3167@infocenter.UUCP> <8178@bsu-cs.bsu.edu> Organization: IU, Bloomington Lines: 37 mithomas@bsu-cs.bsu.edu (Michael Thomas Niehaus) writes: >I have a question that maybe some dBase IV person can answer. Let's say that >I have the following chunk of dBase code: >T="this is a test" >IF T="this is not a test" THEN > @10,10 say "Inside the if" >ENIF && Notice the misspelling >@11,10 SAY "Outside the if" >RETURN >Can anyone tell me what dBase IV does with this? If it returns an error >message, I would switch instantly. here's what IV does with the above six lines in a file called foo.prg: . do foo.prg Compiling line 2 IF T="this is not a test" THEN Warning on line 3: Extra characters ignored at end of command Compiling line 4 ENIF Error on line 4: *** Unrecognized command verb Compiling line 6 RETURN Error on line 7: Missing ENDIF for previous IF command && && it dies here and tries to read another line && beyond the RETURN on line 6. && -- michael regoli mr@cica.indiana.edu regoli@iubacs.bitnet ...rutgers!iuvax!cica!mr