Update ooo320-m1
[ooovba.git] / basic / source / sample / sample.bas
blobd0e416871af08b740b9a5ae5d591b17657cd2c01
1 ' Sample-Programm fuer Sample-Objekte
3 Sub Main
4 Dim Sample As SampleObject
5 Dim Element1 As Object, Element2 As Object
6 Set Element1 = Sample!Create "Objekt"
7 Set Element2 = Sample.Create "Objekt"
8 Element1 = "Element 1"
9 Element2 = "Element 2"
10 For i = 0 to 1
11 Print Sample.Objekt( i )
12 Next
13 'Test der Event-Methode im Sample-Objekt
14 Sample.Event "Bang"
15 End Sub
17 Sub Bang
18 print "Sample-Callback: BANG!"
19 End Sub