Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GETFILE() - Select Multiple Files
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01351917
Message ID:
01352012
Views:
38
>How do you select multiple files while Open File Dialog box is opened?
>
>After we select them, we want to be able to pass them to SQL
>
>
>EXAMPLE
>----------------------------------------
>l_newPicture = GETFILE()
>
>IF EMPTY(l_newPicture ) or !FILE(l_newPicture )
> RETURN
>ENDIF
>
>
>Thanks

http://www.ctl32.com.ar/ctl32_filedialog.asp

"Better than GETFILE() and PUTFILE()

Both GETFILE and PUTFILE return file names in ALL CAPS. These classes use the proper original case of the file name and path.

GETFILE can only return one file name. ctl32_openfiledialog optionally allows multiselect, you can select up to thousands of files.

GETFILE and PUTFILE and the .NET classes do not let you choose the initial view style of the file list. These classes allow you to choose an initial display style, for example Thumbnails, by setting the ctlInitialView property. This setting does not work in Windows Vista.

GETFILE and PUTFILE only let you filter files by extension. These classes let you filter by using any valid filter expression that includes the file names and the extensions.

In Windows Vista, you can optionally use the new style open and save dialog boxes, just by setting the ctlAutoUpgradeEnabled property.

The "Places Bar" can be removed from the dialog."

No ocx dependencies, plain VFP code and Windows API.

Carlos Alloatti
Previous
Reply
Map
View

Click here to load this message in the networking platform