xref: /trunk/main/basic/source/sample/sample.bas (revision cdf0e10c)
1*cdf0e10cSrcweir' Sample-Programm fuer Sample-Objekte
2*cdf0e10cSrcweir
3*cdf0e10cSrcweirSub Main
4*cdf0e10cSrcweir	Dim Sample As SampleObject
5*cdf0e10cSrcweir	Dim Element1 As Object, Element2 As Object
6*cdf0e10cSrcweir	Set Element1 = Sample!Create "Objekt"
7*cdf0e10cSrcweir	Set Element2 = Sample.Create "Objekt"
8*cdf0e10cSrcweir	Element1 = "Element 1"
9*cdf0e10cSrcweir	Element2 = "Element 2"
10*cdf0e10cSrcweir	For i = 0 to 1
11*cdf0e10cSrcweir		Print Sample.Objekt( i )
12*cdf0e10cSrcweir	Next
13*cdf0e10cSrcweir	'Test der Event-Methode im Sample-Objekt
14*cdf0e10cSrcweir	Sample.Event "Bang"
15*cdf0e10cSrcweirEnd Sub
16*cdf0e10cSrcweir
17*cdf0e10cSrcweirSub Bang
18*cdf0e10cSrcweir	print "Sample-Callback: BANG!"
19*cdf0e10cSrcweirEnd Sub
20*cdf0e10cSrcweir
21*cdf0e10cSrcweir
22*cdf0e10cSrcweir
23*cdf0e10cSrcweir
24*cdf0e10cSrcweir
25*cdf0e10cSrcweir
26*cdf0e10cSrcweir
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir
29*cdf0e10cSrcweir
30*cdf0e10cSrcweir
31*cdf0e10cSrcweir
32*cdf0e10cSrcweir
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir
35*cdf0e10cSrcweir
36*cdf0e10cSrcweir
37*cdf0e10cSrcweir
38*cdf0e10cSrcweir
39*cdf0e10cSrcweir
40