ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Mobile specific functions / URI functions
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 buffer to a resource identified by its URI.
Example
// Opens the resource selector in creation mode
uriDocImage is URI = URISelect(uriImage, uriCreate)
IF NOT ErrorOccurred THEN
// Save the contents of the buffer that contains the image in the created document
BufferToURI(bufImage, uriDocImage)
END
Syntax
<Result> = BufferToURI(<Buffer to use> , <Destination URI> [, <Mode>])
<Result>: Boolean
  • True if saved successfully,
  • False otherwise.
If an error occurs, the ErrorOccurred variable is set to True. To get more details on the error, use ErrorInfo.
<Buffer to use>: Buffer
Buffer corresponding to the content to be saved in the resource (identified by its URI).
<Destination URI>: Character string or URI variable
URI of the 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
Backup mode:
uriAddThe contents of the buffer are added at the end of the initial contents of the resource.
uriCreate
(Default value)
The initial contents of the resource are replaced by the contents of the buffer.
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

Last update: 03/22/2024

Send a report | Local help