PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Associating an application with a file extension
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
SysRecentDocList (Function)
In French: SysDocRécentListe
Returns the list of recently opened documents.
Example
// Displays the list of recently opened documents in LIST_RecentDoc
LIST_RecentDoc = SysRecentDocList()
Versions 23 and later
// Displays in LIST_RecentDoc
// the list of recently opened documents and directories
// sorted by date and with the displayed date
Trace(SysRecentDocList(srdlSortDate + srdlDate))
// Displays for example
// C:\MyDoc 20180322105130
// C:\MyDoc\Post.jpg 20180322105130
// C:\MyDoc\Post2.jpg 20180322095020
New in version 23
// Displays in LIST_RecentDoc
// the list of recently opened documents and directories
// sorted by date and with the displayed date
Trace(SysRecentDocList(srdlSortDate + srdlDate))
// Displays for example
// C:\MyDoc 20180322105130
// C:\MyDoc\Post.jpg 20180322105130
// C:\MyDoc\Post2.jpg 20180322095020
// Displays in LIST_RecentDoc
// the list of recently opened documents and directories
// sorted by date and with the displayed date
Trace(SysRecentDocList(srdlSortDate + srdlDate))
// Displays for example
// C:\MyDoc 20180322105130
// C:\MyDoc\Post.jpg 20180322105130
// C:\MyDoc\Post2.jpg 20180322095020
Syntax
<Result> = SysRecentDocList([<Options>])
<Result>: Character string
List of recently opened documents. This list has the following format:
<Path Document 1> + CR + <PAth Document 2> + CR + ... + <Path Document N>
Versions 23 and later
Depending on the options used, this list can also display:
  • the date of last access in YYYYMMDDHHMMSS format.
  • the name of accessed directories.
New in version 23
Depending on the options used, this list can also display:
  • the date of last access in YYYYMMDDHHMMSS format.
  • the name of accessed directories.
Depending on the options used, this list can also display:
  • the date of last access in YYYYMMDDHHMMSS format.
  • the name of accessed directories.
<Options>: Combinable Integer constants
  • Process mode of paths:
    fPathUNICODE<Result> will be a character string in Unicode format.
    CAUTION: If this option is not specified, the document paths containing strings that cannot be changed into ANSI will be replaced by the corresponding short path.
  • Versions 23 and later
    Information displayed in the list:
    srdlDateIn addition to the requested information, <Result> contains the date of last access to the file in YYYYMMDDHHMMSS format (separated from the element path by a tabulation).
    srdlDefault<Result> contains the list of last opened documents (file path corresponding to the opened document).
    srdlSortDate<Result> contains the list of last accessed directories and last opened documents (separated by CR), sorted from the most recent one to the oldest one.
    This constant can be combined with the srdlDate constant: in this case, the date of last access is added (separated from the path by CR).
    New in version 23
    Information displayed in the list:
    srdlDateIn addition to the requested information, <Result> contains the date of last access to the file in YYYYMMDDHHMMSS format (separated from the element path by a tabulation).
    srdlDefault<Result> contains the list of last opened documents (file path corresponding to the opened document).
    srdlSortDate<Result> contains the list of last accessed directories and last opened documents (separated by CR), sorted from the most recent one to the oldest one.
    This constant can be combined with the srdlDate constant: in this case, the date of last access is added (separated from the path by CR).
    Information displayed in the list:
    srdlDateIn addition to the requested information, <Result> contains the date of last access to the file in YYYYMMDDHHMMSS format (separated from the element path by a tabulation).
    srdlDefault<Result> contains the list of last opened documents (file path corresponding to the opened document).
    srdlSortDate<Result> contains the list of last accessed directories and last opened documents (separated by CR), sorted from the most recent one to the oldest one.
    This constant can be combined with the srdlDate constant: in this case, the date of last access is added (separated from the path by CR).
Remarks

Associating an application with a file extension

To associate an application with a file extension via the registry, you must create the following keys:
  • "HKEY_CLASSES_ROOT\.ext":
    where ext is the extension.
    The default value corresponds to the type of file (free string).
  • "HKEY_CLASSES_ROOT\type_name":
    where type_name is the name of the type given to the extension.
    The default value corresponds to the description that will be displayed in the "Type" column of the Windows explorer.
  • "HKEY_CLASSES_ROOT\type_name\shell\open\command":
    The default value is the command that will be run by ShellExecute on this type of file. In the command line, the %1 string will be replaced by the path of the file.
Components
WINDEVReports and Queries wd230std.dll
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment