[html]...[/html]
[code]...<<x>...>...[/code]
HiThe function task.getFiles() simply returns the arraylist of file objects which can be used to get the vpath of file and other information of file(files) that are attached to that task file.It can be used as follows, just take an examplelet's say that you want vPath of the files that are attached to the task.then this wiil be used as follows--[html]CSAreaRelativePath files[] = task.getFiles(); for (int j = 0 ;j < files.length; j++) { CSAreaRelativePath file=files; CSFile csfile = task.getArea().getFile(file); CSSimpleFileImpl cssimplefileimpl = (CSSimpleFileImpl) csfile; CSVPath csvpath = cssimplefileimpl.getVPath(); System.out.println("This vPath of file is :" + csvpath); }[/html]Note:As required by your post,you can use a counter to list the attached filesfor a task.Hope it will help you.
Fixing formatting of code to make it readable (folks - please learn to either use [html]...[/html]or [code]...<<x>...>...[/code] when posting such things. And make sure to Preview Post before Submit Reply). In this case it was the '<' in the for() loop that messed things up: