>I am using vfp 6.0 sp3
>
>In the meanwhile I am testing this code and it appears to be working fine.
>
>
>onerror = on("error")
>noerror = .t.
>on error noerror = .f.
>use excl csf\tscmpms
>on error &onerror
>if noerror
> ...
> ...
> ...
>endif
>
>
>Thanks
Yeah, that is the best way. As Tore says, it is easier in VFP 9. But the point is, to get any resource outside the system, several things can go wrong, so in principle, you should have error checking.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)