The following program fits the model of Example 11-a.
Module MainModule
' BeginGroup Method Example
Sub Main()
Dim Sem As New AmosEngineLib.AmosEngine
Sem.TextOutput()
Sem.BeginGroup(AmosEngine.AmosDir & "Examples\English\UserGuide.xls", "Fels_fem")
Sem.GroupName("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")
Sem.AStructure("academic = GPA + attract + e1 (1)")
Sem.AStructure("attract = height + weight + rating + academic + e2 (1)")
Sem.AStructure("e2 <--> e1")
Sem.Dispose()
End Sub
End Module