PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV Mobile 27 feature!
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Saves the contents of a file to a resource identified by its URI.
Example
// Ouvre le sélecteur de ressources en mode création
uriDocImage is URI = URISelect(uriImage, uriCreate)
IF NOT ErrorOccurred THEN
// Sauvegarde de l'image dans le document créé
FileToURI(image, uriDocImage)
END
Syntax
<Result> = FileToURI(<File to save> , <Destination URI> [, <Mode>])
<Result>: Boolean
  • True if saved successfully,
  • false otherwise.
In case of error, the Variable ErrorOccurred is to True. For more details on the error, use function ErrorInfo.
<File to save>: Character string
Path of the file to be saved. This file must exist.
<Destination URI>: Character string or URI variable
Resource to which the file should be saved. This resource can be identified:
  • by a string corresponding to a URI,
  • by a variable of type URI.
Remark: The specified URI must be of type "file" (external file) or "content" (resource from a content provider) and be writable.
<Mode>: Optional Integer constant
Save mode:
uriAddThe contents of the file are added at the end of the initial contents of the resource.
uriCreation
(Default value)
The initial contents of the resource are replaced by the contents of the file.
Remarks
To select a resource and get its URI, use URISelect.
Business / UI classification: UI Code
Minimum version required
  • Version 27
Comments
Click [Add] to post a comment