PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Generation wizard
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
Extracts a resource from the application into a physical device location.
Remarks:
  • Universal Windows 10 App The resource to extract must have been included in the generated application by the generation wizard (see Notes).
  • Versions 23 and later
    WindowsLinux In WINDEV applications or WEBDEV sites, the resource to extract must be:
    • in the "Other" category of the Project explorer,
    • in the main library of the application (WDL file).
    New in version 23
    WindowsLinux In WINDEV applications or WEBDEV sites, the resource to extract must be:
    • in the "Other" category of the Project explorer,
    • in the main library of the application (WDL file).
    WindowsLinux In WINDEV applications or WEBDEV sites, the resource to extract must be:
    • in the "Other" category of the Project explorer,
    • in the main library of the application (WDL file).
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 23 and later
WINDEVWindowsLinux This function is now available for the Windows and Linux applications.
WindowsLinux This function is now available for the Windows and Linux sites.
New in version 23
WINDEVWindowsLinux This function is now available for the Windows and Linux applications.
WindowsLinux This function is now available for the Windows and Linux sites.
WINDEVWindowsLinux This function is now available for the Windows and Linux applications.
WindowsLinux This function is now available for the Windows and Linux sites.
Example
Syntax
<Result> = fExtractResource(<Resource name> [, <Destination>])
<Result>: Boolean
  • True if the resource was extracted,
  • False otherwise. The ErrorOccurred variable is set to True if an error occurs. For more details on the error, use ErrorInfo.
<Resource name>: Character string (with quotes)
Name of resource to extract (file name with its extension).
Versions 23 and later
WindowsLinux The resource to extract must be found in the main application library (WDL file). The library must have not been loaded by LoadWDL.
New in version 23
WindowsLinux The resource to extract must be found in the main application library (WDL file). The library must have not been loaded by LoadWDL.
WindowsLinux The resource to extract must be found in the main application library (WDL file). The library must have not been loaded by LoadWDL.
<Destination>: Optional character string (with quotes)
Universal Windows 10 App In Windows Phone, relative path of the destination file (in relation to the current directory). The current directory corresponds to the data directory of application.
If the directory exists, the resource is directly extracted into this directory.
The directory is created if it does not exist.
Reminder: In Windows Phone, only the files found in the data directory associated with the application can be handled.
If this parameter is not specified or if it corresponds to an empty string (""), the resource will be extracted into the current application directory in a file named like the resource.
The destination file will be overwritten if it already exists before the extraction.
Versions 23 and later
WindowsLinux Full path of destination file.
If the directory exists, the resource is directly extracted into this directory.
The directory is created if it does not exist.
If this parameter is not specified or if it corresponds to an empty string (""), the resource will be extracted into the application data directory (returned by fDataDir) in a file named like the resource.
The destination file will be overwritten if it already exists before the extraction.
New in version 23
WindowsLinux Full path of destination file.
If the directory exists, the resource is directly extracted into this directory.
The directory is created if it does not exist.
If this parameter is not specified or if it corresponds to an empty string (""), the resource will be extracted into the application data directory (returned by fDataDir) in a file named like the resource.
The destination file will be overwritten if it already exists before the extraction.
WindowsLinux Full path of destination file.
If the directory exists, the resource is directly extracted into this directory.
The directory is created if it does not exist.
If this parameter is not specified or if it corresponds to an empty string (""), the resource will be extracted into the application data directory (returned by fDataDir) in a file named like the resource.
The destination file will be overwritten if it already exists before the extraction.
Remarks
Universal Windows 10 App

Generation wizard

The wizard for generating Android, Universal Windows 10 app or iPhone/iPad applications allows you to specify whether files and libraries must be included in the application.
In an Android application, you have the ability to include:
  • specific resources.
  • specific Java archives.
Then, these files can be:
  • used directly (files to read for example: sound files, image files, etc.).
  • extracted by fExtractResource (files to modify by the application for example).
If an image is included in the application, it can be directly assigned to a control by specifying its name. For example:
IMG_Image = image1
For more details, see:
Component : wd240vm.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment