Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getfile()
Message
From
08/02/2002 09:34:07
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00616954
Message ID:
00617304
Views:
37
>
>Getting back to my orig quest, is there a way for getfile() to show only files of my choice beginning with a prefix like 020*.dbf rather than all dbfs()?

No, but as Caroline said, you could also use LOCFILE(). It will throw an error if the user presses cancel, so you have to trap for it:
local lcOldError, llCancel, lcFileName
lcOldError = on("error")
llCancel = .f.
on error llCancel = .t.
lcFileName = locFile("020*.dbf")
on error &lcOldError
if !llCancel
    * user selected a file...do your stuff
else
    * user hit cancel
endif
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform