MATLAB Excel Builder | ![]() ![]() |
Visual Basic Mapping
The Visual Basic mapping to the IDL signature shown above is
Sub foo(nargout As Long, _ Y1 As Variant, _ Y2 As Variant, _ . . varargout As Variant, _ X1 As Variant, _ X2 As Varaint, _ . . varargin As Variant)
(See the COM documentation for mappings to other languages, such as C++.) Visual Basic provides native support for COM VARIANT
s with the Variant
type, as well as implicit conversions for all Visual Basic basic types to and from Variant
s. In general, arrays/scalars of any Visual Basic basic type, as well as arrays/scalars of Variant
types, can be passed as arguments. MATLAB Excel Builder components also provide direct support for the Excel Range
object, used by Visual Basic for Applications to represent a range of cells in an Excel worksheet. See the Visual Basic for Applications documentation included with Microsoft Excel for more information on Visual Basic data types and Excel Range
manipulation.
![]() | IDL Mapping | MATLAB Compiler Output | ![]() |