www.icetips.com  Icetips Utilities Documentation 11/30/2010    

Utility Class: MultiFileSelect

Previous  Top  Next  


Prototype:  (String pMfS),Long

 

pMfSString containing multiple file selection from the Clarion FileDialog or FileDialogA functions.

 

ReturnsNumber 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

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/multifileselect_utility.htm