Description
Read-only. Creates a sub file for the specified type. By default, the file is created for the current batch image sequence, but a specific batch image sequence can also be passed. Returns TRUE if the create succeeded, otherwise FALSE. This method is not supported in VERIFYit.
Applicable Events
Post Verification
Syntax
object.SubFileCreate (<sub file type>, <opt-batch seq>)
Parameters
Object is a reference to the Form object. For more information, see Form Object (page Form Object).
SubFileCreate is the command.
Sub File Type is the type of sub file to create, specifically, SUBFILE_CHECK_FRONT or SUBFILE_CHECK_BACK.
Opt Batch Seq is an optional parameter. If not specified, the current batch image sequence is used, otherwise the specified batch image sequence is used.
Example
nCheck_Front_Seq = Form.CurrentBatchPage
nCheck_Back_Seq = Form.CurrentBatchPage + 1
nSubFile_Count_Front = Form.SubFileGetCount (SUBFILE_CHECK_FRONT)
nSubFile_Count_Back = Form.SubFileGetCount (SUBFILE_CHECK_BACK)
'nSubFile_Count_Front = Form.SubFileGetCount (SUBFILE_CHECK_FRONT, nCheck_Front_Seq)
'nSubFile_Count_Back = Form.SubFileGetCount (SUBFILE_CHECK_BACK, nCheck_Back_Seq)
MsgBox "subfile counts - front/back = " & "/" & nSubFile_Count_Front & "/" & nSubFile_Count_Back
If nSubFile_Count_Front = 0 Then
'Create check front subfile for current image
bReturn = Form.SubFileCreate (SUBFILE_CHECK_FRONT)
'Virtual Back - create back subfile for current image
'Form.SubFileCreate SUBFILE_CHECK_BACK
'Physical Back on specific image
bReturn = Form.SubFileCreate (SUBFILE_CHECK_BACK, nCheck_Back_Seq)
MsgBox "Created SubFiles"
End If