|
Previous Top Next |
Prototype: | (String pMfS),Long |
pMfS | String containing multiple file selection from the Clarion FileDialog or FileDialogA functions. |
Returns | Number of files selected |
This function is very useful when you use FileDialog or FileDialogA to allow users to open multiple files. Then the selection is returned in a pipe delimited string where the first filename contains the path and the rest only contains the filenames. Example:
'C:\Clarion\Apps\Tests\Myapp.app|otherapp.app|thirdapp.app'
This method splits it up and puts this into the MSQ queue where each entry contains the full path and filename of each selected file.
Example:
Fn CString(10001)
I Long
ITU ITUtilityClass
Code
If FileDialog('Select files',Fn,'All Files (*.*)|*.*',FILE:KeepDir+FILE:Multi+FILE:LongName)
ITU.MultiFileSelect(FN)
Loop I = 1 To Records(ITU.MSQ)
Get(ITU.MSQ,I)
! Do something with the filename
End
End