FileCollection.Move Method
This method moves a file name from one location to another within the FileCollection.
Syntax
void Move ( int oldindex , int newindex )
Parameters | Description |
oldindex | The initial position of the file name to move. |
newindex | The new position for the file name. |
Example
'This example adds two files to a file collection and then displays the number of ' files in the collection. Then it moves the first file to the end of the collection ' and displays the updated string of files. Dim fc Set fc = Server.CreateObject("HotDocs_Online.FileCollection") fc.Add "c:\inetpub\wwwroot\files\demoempl.docx" fc.Add "c:\inetpub\wwwroot\files\clauses.docx" Response.Write fc.Count & "<br>" Response.Write fc.AsString & "<br>" fc.Move 0, fc.Count - 1 Response.Write fc.AsString