User guide
DOKuStar Validation Programming Manual Page • 17
docDescLetter.Descriptors.Add docTypeCovering ' add the subdocument
docDescLetter.Descriptors.Add "Invoice" ' alternative: add a subdocument by name
docDescLetter.Descriptors.Add docTypeVoucher
Note that the
Add method can either take a DocumentType object as the parameter (first line) or the name of
the
DocumentType object (second line). This convenience exists for many Add methods throughout the
DokuStar Validation objects.
Back in the main routine, we finally save the project:
MyApp.Project.SaveAs App.Path + "\MyProject.vpj"
When you now start DOKuStar Validation in administration mode and open the project just created, you will see the
same structure on the
Schema tab as in the project we created manually.