But if you do an ENDIF in VB or VBA, the IDE fixes it for you automatically..I got so used to doing it the RB way, I just let the IDE go ahead and be kind to me...
----- Original Message ----- From: <[EMAIL PROTECTED]> To: "RBASE-L Mailing List" <[email protected]> Sent: Wednesday, June 11, 2008 3:49 PM Subject: [RBASE-L] - Re: Noob question > Ha! How many of us looked at it and didn't see that? It's as plain as > day now that you pointed it out. > > Well, to be fair to us all who sometimes do development work in other > environments, where it is proper to use END IF, I guess it's not so hard > to overlook. > > Dawn > > > > Dan <[EMAIL PROTECTED]> wrote on 06/11/2008 03:39:20 PM: > >> Also it might be as simple as... your END IF should be ENDIF. >> >> At 02:56 PM 6/11/2008, you wrote: >> I know that this is pretty basic, but bear with me... >> >> I have an IF statement checking for the existence of a file, and >> keep getting strange -ERROR- ENDWHILE, ENDSW or ENDIF missing in an >> input file ( 462). >> >> The behavior is if sfh_tmp.txt exists, DO THIS processes, but it >> chokes on ELSE. If the file doesn't exist, it processes correctly. >> The same holds true with wff_tmp.txt. >> >> SET VAR vSf = (CHKFILE('sfh_tmp.txt')) >> IF vSf = 1 THEN >> DO THIS >> ELSE >> DO THAT >> END IF >> CLEAR VAR vSf >> SET VAR vWf = (CHKFILE('wff_tmp.txt')) >> IF vWf = 1 THEN >> DO NOTHING >> ELSE >> DO SOMETHING >> END IF >> CLEAR VAR vWf >> >> The variables are filling correctly, with a 1 if found, and 0 if not. >> >> TIA! >> >> -- >> John Croson >> [EMAIL PROTECTED] >> http://pcnorb.blogspot.com/ >> http://pcnorb.homelinux.org/ >> Dan Champion >> Service Department Manager >> Vredevoogd Heating & Cooling >> Grandville, MI. 49418 >> 616-534-8271 x 14 >>

