>lcTabla = alltrim((ThisForm.Acgetdirectory1.txtDirectory.Value)) + ThisForm.aTablas(lnI) >if file(lcTabla) > select 0 > use (lcTabla) exclusive <b>ELSE WAIT WIND "File not found '" + lcTabla +"'"</b> >endif>The if statement is true (the file exists) and enters the code block within.