PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Various
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
Opens a system window to select a resource coming:
  • from the device file system,
  • from the Cloud (Google Drive, Microsoft OneDrive, etc.)
  • from one of the content managers installed on the device.
Versions 26 and later
WINDEV This function is now available for WINDEV applications in Windows.
New in version 26
WINDEV This function is now available for WINDEV applications in Windows.
WINDEV This function is now available for WINDEV applications in Windows.
Example
Versions 26 and later
WINDEV
URISelect(MaProcURISélecteur, uriAudio + TAB + uriImage + TAB + uriVidéo)
 
INTERNAL PROCÉDURE MaProcURISélecteur(Succès is boolean, Résultat1 is URI)
IF Succès = True THEN
// Affiche le nom de la ressource sélectionnée
ToastDisplay(Résultat1.Value)
END
END
New in version 26
WINDEV
URISelect(MaProcURISélecteur, uriAudio + TAB + uriImage + TAB + uriVidéo)
 
INTERNAL PROCÉDURE MaProcURISélecteur(Succès is boolean, Résultat1 is URI)
IF Succès = True THEN
// Affiche le nom de la ressource sélectionnée
ToastDisplay(Résultat1.Value)
END
END
WINDEV
URISelect(MaProcURISélecteur, uriAudio + TAB + uriImage + TAB + uriVidéo)
 
INTERNAL PROCÉDURE MaProcURISélecteur(Succès is boolean, Résultat1 is URI)
IF Succès = True THEN
// Affiche le nom de la ressource sélectionnée
ToastDisplay(Résultat1.Value)
END
END
Syntax
WINDEV

Select an Resource (synchronous code) Hide the details

<Result> = URISelect([<MIME types>])
<Result>: URI variable
  • URI that corresponds to the selected resource.
  • The ErrorOccurred variable is set to True if an error occurs. To get the details of the error, use ErrorInfo.
<MIME types>: Optional character string or constant
  • List of MIME types of selectable files, separated by TAB.
  • One of the following specific constants:
    uriAudioAllows all types of audio files.
    uriImageAllows all types of image files.
    uriVideoAllows all types of video files.

    Remark: It is possible to concatenate constants by separating them with TAB.
If a specified MIME type is not known by the system, it will be ignored.
If this parameter is not specified, all files will be selectable.
Versions 25 and later
WINDEV

Selecting a resource (asynchronous code) Hide the details

URISelect(<WLanguage procedure> [, <MIME types>])
<WLanguage procedure>: Procedure name
Name of the WLanguage procedure ("callback") called for the selected file. This procedure is called when the user closes the URI selection window. For more details on this procedure, see Parameters of the procedure used by URISelect.
<MIME types>: Optional character string or constant
  • List of MIME types of selectable files, separated by TAB.
  • The following specific constants:
    uriAudioAllows all types of audio files.
    uriImageAllows all types of image files.
    uriVideoAllows all types of video files.

    Remark: It is possible to concatenate constants by separating them with TAB.
If a specified MIME type is not known by the system, it will be ignored.
If this parameter is not specified, all files will be selectable.
New in version 25
WINDEV

Selecting a resource (asynchronous code) Hide the details

URISelect(<WLanguage procedure> [, <MIME types>])
<WLanguage procedure>: Procedure name
Name of the WLanguage procedure ("callback") called for the selected file. This procedure is called when the user closes the URI selection window. For more details on this procedure, see Parameters of the procedure used by URISelect.
<MIME types>: Optional character string or constant
  • List of MIME types of selectable files, separated by TAB.
  • The following specific constants:
    uriAudioAllows all types of audio files.
    uriImageAllows all types of image files.
    uriVideoAllows all types of video files.

    Remark: It is possible to concatenate constants by separating them with TAB.
If a specified MIME type is not known by the system, it will be ignored.
If this parameter is not specified, all files will be selectable.
WINDEV

Selecting a resource (asynchronous code) Hide the details

URISelect(<WLanguage procedure> [, <MIME types>])
<WLanguage procedure>: Procedure name
Name of the WLanguage procedure ("callback") called for the selected file. This procedure is called when the user closes the URI selection window. For more details on this procedure, see Parameters of the procedure used by URISelect.
<MIME types>: Optional character string or constant
  • List of MIME types of selectable files, separated by TAB.
  • The following specific constants:
    uriAudioAllows all types of audio files.
    uriImageAllows all types of image files.
    uriVideoAllows all types of video files.

    Remark: It is possible to concatenate constants by separating them with TAB.
If a specified MIME type is not known by the system, it will be ignored.
If this parameter is not specified, all files will be selectable.
Remarks

Various

  • To manage the URI returned by URISelect, use the URIxxx functions.
  • To retrieve additional information (name, size, MIME type) on the selected resource, use URIGetInfo.
  • WINDEV This function is mainly used to write multi-platform code.
Business / UI classification: UI Code
Component: wd260java.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment