1*5b501c92SAndrew Ristrem ************************************************************* 2*5b501c92SAndrew Ristrem 3*5b501c92SAndrew Ristrem Licensed to the Apache Software Foundation (ASF) under one 4*5b501c92SAndrew Ristrem or more contributor license agreements. See the NOTICE file 5*5b501c92SAndrew Ristrem distributed with this work for additional information 6*5b501c92SAndrew Ristrem regarding copyright ownership. The ASF licenses this file 7*5b501c92SAndrew Ristrem to you under the Apache License, Version 2.0 (the 8*5b501c92SAndrew Ristrem "License"); you may not use this file except in compliance 9*5b501c92SAndrew Ristrem with the License. You may obtain a copy of the License at 10*5b501c92SAndrew Ristrem 11*5b501c92SAndrew Ristrem http://www.apache.org/licenses/LICENSE-2.0 12*5b501c92SAndrew Ristrem 13*5b501c92SAndrew Ristrem Unless required by applicable law or agreed to in writing, 14*5b501c92SAndrew Ristrem software distributed under the License is distributed on an 15*5b501c92SAndrew Ristrem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*5b501c92SAndrew Ristrem KIND, either express or implied. See the License for the 17*5b501c92SAndrew Ristrem specific language governing permissions and limitations 18*5b501c92SAndrew Ristrem under the License. 19*5b501c92SAndrew Ristrem 20*5b501c92SAndrew Ristrem ************************************************************* 21cdf0e10cSrcweir' Sample-Programm fuer Sample-Objekte 22cdf0e10cSrcweir 23cdf0e10cSrcweirSub Main 24cdf0e10cSrcweir Dim Sample As SampleObject 25cdf0e10cSrcweir Dim Element1 As Object, Element2 As Object 26cdf0e10cSrcweir Set Element1 = Sample!Create "Objekt" 27cdf0e10cSrcweir Set Element2 = Sample.Create "Objekt" 28cdf0e10cSrcweir Element1 = "Element 1" 29cdf0e10cSrcweir Element2 = "Element 2" 30cdf0e10cSrcweir For i = 0 to 1 31cdf0e10cSrcweir Print Sample.Objekt( i ) 32cdf0e10cSrcweir Next 33cdf0e10cSrcweir 'Test der Event-Methode im Sample-Objekt 34cdf0e10cSrcweir Sample.Event "Bang" 35cdf0e10cSrcweirEnd Sub 36cdf0e10cSrcweir 37cdf0e10cSrcweirSub Bang 38cdf0e10cSrcweir print "Sample-Callback: BANG!" 39cdf0e10cSrcweirEnd Sub 40cdf0e10cSrcweir 41cdf0e10cSrcweir 42cdf0e10cSrcweir 43cdf0e10cSrcweir 44cdf0e10cSrcweir 45cdf0e10cSrcweir 46cdf0e10cSrcweir 47cdf0e10cSrcweir 48cdf0e10cSrcweir 49cdf0e10cSrcweir 50cdf0e10cSrcweir 51cdf0e10cSrcweir 52cdf0e10cSrcweir 53cdf0e10cSrcweir 54cdf0e10cSrcweir 55cdf0e10cSrcweir 56cdf0e10cSrcweir 57cdf0e10cSrcweir 58cdf0e10cSrcweir 59cdf0e10cSrcweir 60