AnswerCollection.Close Method

This method closes an answer file that has been opened using the Open method, which frees all of the resources associated with an AnswerCollection object.

Syntax

void Close ( )

Example

' This example opens a binary (.ANS) answer file in an answer collection,
' changes the file format to XML, and saves the answers in a new file.
 
dim ac
Set ac = Server.CreateObject("HotDocs_Online.AnswerCollection")
 
ac.Open "C:\answer.ans"
ac.FileFormat = ansXmlAns
ac.Save "C:\answer.anx"
ac.Close