>In code of Click event I have placed command:
>
>cPath=GETFILE("DBF","Select data file")
>
>Then, after execution program, appears dialog box with type of file *.OCX and I would like to see DBF files.
>What must I do?
I don't know what the problems is here, but apparently there's an ActiveX control that hasn't been properly registered. That's why you're seeing the GETFILE() dialog with that extension.
It'e a personal practice of mine never to let the user try to find a file, since invariably, they won't. I'd suggest using relative paths or stroing the target table in a another table.
As for LOCFILE(), I discontinued use of that function back in 2.x. It doesn't provide any way to trap an error.
George
Ubi caritas et amor, deus ibi est