Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with GETFILE() command
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6 SP3
OS:
Windows XP SP1
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00966318
Message ID:
00966580
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform