User`s guide
Utility Library Classes
Utility Library Class es
The MATLAB Builder for E xcel Utility library provides these classes:
• “Class MWUtil” on page C-3
• “Class MWFlags” on page C-10
• “Class MWStruct” on page C-16
• “Class MWField” on page C-24
• “Class MWComplex” on page C-25
• “Class MWSparse” on page C-27
• “Cla ss M WArg” on page C -3 0
Class MWUtil
The MWUtil class contains a set of static utility methods used in array
processing and application initialization. This class is impleme n te d internally
as a singleton (only one global instance of this class per instance of Excel). It
is most efficien t to declare one v ariable o f this type in global scope within each
module that uses it. The methods of
MWUtil are
• “Sub MWInitA p pl ication(pApp As Object)” on page C-3
• “Sub MWPack(pVarArg, [Var0], [Var1], ... ,[Var31])” on page C-5
• “Sub MWUnpack(VarArg, [nStartAt As Long], [bAutoResize As Boolean =
False], [pVar0], [pVar1], ..., [pVar31])” on page C-6
• “Sub MWDate2VariantDate(pVar)” on page C-8
The function prototypes use Visual Basic syntax.
Sub MWInitApplication(pApp As Object)
Initializes the library with the current instance of Excel.
C-3