Using Win32 functions in Visual FoxPro Image Gallery
Common Dialog Box
..msdn
ChooseColor
ChooseFont
CommDlgExtendedError
FindText
GetFileTitle
GetOpenFileName
GetSaveFileName
PageSetupDlg
PrintDlg
PrintDlgEx
TaskDialog
TaskDialogIndirect
Code examples:
Creating the Open dialog box to specify the drive, directory, and name of a file to open
GetOpenFileName
..msdn    Add comment     W32 Constants      Translate this page
The GetOpenFileName function creates an Open dialog box that lets the user specify the drive, directory, and the name of a file or set of files to open.
Code examples:
Creating the Open dialog box to specify the drive, directory, and name of a file to open
Declaration:
BOOL GetOpenFileName(
    LPOPENFILENAME lpofn
);
FoxPro declaration:
DECLARE INTEGER GetOpenFileName IN comdlg32;
    STRING @ lpofn
Parameters:
lpofn
[in, out] Pointer to an OPENFILENAME structure that contains information used to initialize the dialog box. When GetOpenFileName returns, this structure contains information about the user"s file selection.
Return value:
If the user specifies a file name and clicks the OK button, the return value is nonzero.
Usage:
IF GetOpenFileName(@lcBuffer) = 0
    nErrorCode = CommDlgExtendedError()
    IF nErrorCode <> 0
        ? "Error code:", nErrorCode
    ELSE
    * the Cancel button selected
    ENDIF
ENDIF
My comment:
The GetFileNameFromBrowse provides similar functionality.

Word Index links for the GetOpenFileName :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-01-02 14:29:33
Modified: 2009-02-06 13:31:45
Visited in last 7 days: 27
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.83.133.189)
2 sec.Function: 'DeleteDC'
8 sec.Example: 'Enumerating the subkeys of a user-specific key'
14 sec.Function: 'NetShareAdd'
Function group: 'Network Management'
17 sec.Function: 'GetTextFace'
Google
Advertise here!