SaveCases Sub Procedure

Startpage
Overview
Index
HAPI
   |
   HAPI.Domain
      |
      SaveCases(fileName As String, colNodes As Collection, cases As Variant, casecounts As Boolean, separator As String, missingData As String)

Syntax

Sub Procedure SaveCases(fileName As String, colNodes As Collection, cases As Variant, casecounts As Boolean, separator As String, missingData As String)

Parameter description

NameTypeDescription
fileNameString The name of the file in which the cases will be saved
colNodesCollection A collection containing the nodes which are included in the file. That is, only the cases on the nodes in this collection are saved to the file. The collection cannot be empty.
casesVariant An integer array, containing the id of all the cases which will be written to the file. If all cases are to be saved, give Nothing as parameter
casecountsBoolean If true, case counts will always be stored, even if they are all 1. If false, case counts will only be stored if they are different from 1.
separatorString A string of characters used to separate the values in the file
missingDataString The value used to represent missing data in the file

Description

Save the inserted cases into a data file. The data file can later be inserted by calling ParseCases, given that "," is used as separator and the empty string ("") is used as missingData.

HUGIN Expert A/S, 2008 - comments to activex@hugin.com