User`s guide

Utility Library Classes
D-15
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 output argument as
a date. By default, numeric dates that are output parameters from compiled
MATLAB functions are passed as
Doubles that need to be decremented by the
COM date bias (693960) as well as coerced 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
MATLAB 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 MATLAB code that already performs
the increment 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.
Parameters.
Return Value.
None
Argument Type Description
ppFlags MWFlags
Reference to an uninitialized
MWFlags object that receives the
copy.