MATLAB BUILDER EX 1 Podręcznik Użytkownika Strona 42

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 41
3 Programming with Excel Builder Components
3-8
The following example illustrates this technique with the second method.
Dim aClass As mycomponent.myclass
Function foo(x1 As Variant, x2 As Variant) As Variant
On Error Goto Handle_Error
If aClass Is Nothing Then
Set aClass = New mycomponent.myclass
End If
' (call some methods on aClass)
Exit Function
Handle_Error:
foo = Err.Description
End Function
Przeglądanie stron 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 181 182

Komentarze do niniejszej Instrukcji

Brak uwag