You can shorten the code to
IF INLIST(n_erro, 15, 41, 1707, 114, 2091)
...
Also OR and AND do not require surroinding dots
>Please check if is there any error missing
>I am using it to check corrupted tables
>
>***********************
>Use mytable.dbf
>
>IF n_erro = 15 .or. n_erro = 41 .or. n_erro = 1707 .or. n_erro = 114 .or. n_erro = 2091
>
>= messagebox (bad_table)
>
> endif
>***********************************************
--sb--