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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 134
Utility Library Classes
explicit type declaration for the aClass variable. As with previous examples,
this function assumes that
MWInitApplication has been previously called.
Sub GenPrimes(R As Range, n As Double)
Dim aClass As mycomponent.myclass
On Error GoTo Handle_Error
Set aClass = New mycomponent.myclass
aClass.MWFlags.ArrayFormatFlags.AutoResizeOutput = True
aClass.MWFlags.ArrayFormatFlags.TransposeOutput = True
Call aClass.myprimes(1, R, n)
Exit Sub
Handle_Error:
MsgBox (Err.Description)
End Sub
PropertyOutputAsDate As Boolean. This property processes an o utput
argument as a date. By default, numeric dates that are output param eters
from co mpile d MATLAB functions are passed as
Doublesthatneedtobe
decremented by the COM date bias (69 3 96 0) as well as coe rced to COM dates.
Set this flag to
True to convert all output values of type Double.
PropertyDateBias As Long. This property sets the date bias for performing
COM to M ATLAB numeric date conversions. The default value of this
property is 693960, representing the difference between the COM
Date type
and MATLAB numeric dates. This flag allows existing M ATLAB code that
already performs the increm ent of numeric dates by 693960 to be used
unchanged with Excel Builder components. To process dates with such code,
set this property to
0.
Sub Clone(ppFlags As MWFlags)
Creates a copy of an MWFlags object.
C-15
Przeglądanie stron 134
1 2 ... 130 131 132 133 134 135 136 137 138 139 140 ... 163 164

Komentarze do niniejszej Instrukcji

Brak uwag