This example demonstrates the DataFileNCases method.
Imports System.Diagnostics
Module MainModule
' DataFileNCases Method Example
Sub Main()
Dim Sem As New AmosEngineLib.AmosEngine
Sem.BeginGroup(AmosEngine.AmosDir & "Examples\English\UserGuide.xls", "Fels_fem")
Sem.GroupName("girls")
Debug.WriteLine(Sem.DataFileNCases & " girls")
Sem.AStructure("academic = GPA + attract + e1 (1)")
Sem.AStructure("attract = height + weight + rating + academic + e2 (1)")
Sem.AStructure("e2 <--> e1")
Sem.BeginGroup(AmosEngine.AmosDir & "Examples\English\UserGuide.xls", "Fels_mal")
Sem.GroupName("boys")
Debug.WriteLine(Sem.DataFileNCases & " boys")
Sem.AStructure("academic = GPA + attract + e1 (1)")
Sem.AStructure("attract = height + weight + rating + academic + e2 (1)")
Sem.AStructure("e2 <--> e1")
'Once again:
Debug.WriteLine(Sem.DataFileNCases(1) & " girls")
Debug.WriteLine(Sem.DataFileNCases(2) & " boys")
Sem.Dispose()
End Sub
End Module