﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Bluebit Software Support Forum / Technical Support and Help / Matrix ActiveX Component  / Use of MaXC30 in Excel / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Bluebit Software Support Forum</description><link>http://www.bluebit.gr/forum/</link><webMaster>support@bluebit.gr</webMaster><lastBuildDate>Wed, 08 Feb 2012 04:00:47 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Use of MaXC30 in Excel</title><link>http://www.bluebit.gr/forum/Topic6-1-1.aspx</link><description>Hi&lt;BR&gt;&lt;BR&gt;The reason for this 'type mismatch' error is that Eigen method expects to find as parameters Matrix object variables.&lt;BR&gt;&lt;BR&gt;The variables that you are using (RoE, IoE, RoV, IoV) have not been declared as Matrix variables so they are Variants by default. Those variants contain references to Matrix objects.&lt;BR&gt;&lt;BR&gt;A Variant variable containing a reference to a Matrix object is not the same as a Matrix variable.&lt;BR&gt;&lt;BR&gt;To solve this problem please modify your code as follows:&lt;BR&gt;[code]&lt;BR&gt;Sub genvalues(Sheet, FX, FY)&lt;BR&gt;Dim M As Matrix, RoE As Matrix, IoE As Matrix&lt;BR&gt;Dim RoV As Matrix, IoV As Matrix&lt;BR&gt;&lt;BR&gt;' CreateObject is fine but you can also use:&lt;BR&gt;' Set M = New BluebitMatrix30.Matrix &lt;BR&gt;' or&lt;BR&gt;' Set M = New Matrix&lt;BR&gt;Set M = CreateObject("BluebitMatrix30.Matrix")&lt;BR&gt;M.Size 3, 3&lt;BR&gt;&lt;BR&gt;For X = 0 To 2&lt;BR&gt;For Y = 0 To 2&lt;BR&gt;M(X, Y) = Worksheets(Sheet).Cells(Y + FY, X + FX)&lt;BR&gt;Next&lt;BR&gt;Next&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Set RoE = CreateObject("BluebitMatrix30.Matrix")&lt;BR&gt;Set IoE = CreateObject("BluebitMatrix30.Matrix")&lt;BR&gt;Set RoV = CreateObject("BluebitMatrix30.Matrix")&lt;BR&gt;Set IoV = CreateObject("BluebitMatrix30.Matrix")&lt;BR&gt;&lt;BR&gt;M.EigenC RoE, IoE, RoV, IoV&lt;BR&gt;....&lt;BR&gt;End Sub&lt;BR&gt;[/code]&lt;BR&gt;&lt;BR&gt;</description><pubDate>Mon, 01 Mar 2004 16:56:39 GMT</pubDate><dc:creator>Trifon</dc:creator></item><item><title>Use of MaXC30 in Excel</title><link>http://www.bluebit.gr/forum/Topic6-1-1.aspx</link><description>Hi,&lt;BR&gt;&lt;BR&gt;I am having trouble with using the eigen method&lt;BR&gt;&lt;BR&gt;I get an 'type mismatch (13)' error no matter how I try to using it. The&lt;BR&gt;code below does not work and gives the error I have mentioned.&lt;BR&gt;[code]&lt;BR&gt;Sub genvalues(Sheet, FX, FY)&lt;BR&gt;Set M = CreateObject("BluebitMatrix30.Matrix")&lt;BR&gt;M.Size 3, 3&lt;BR&gt;&lt;BR&gt;For X = 0 To 2&lt;BR&gt;For Y = 0 To 2&lt;BR&gt;M(X, Y) = Worksheets(Sheet).Cells(Y + FY, X + FX)&lt;BR&gt;Next&lt;BR&gt;Next&lt;BR&gt;&lt;BR&gt;Set RoE = CreateObject("BluebitMatrix30.Matrix")&lt;BR&gt;Set IoE = CreateObject("BluebitMatrix30.Matrix")&lt;BR&gt;Set RoV = CreateObject("BluebitMatrix30.Matrix")&lt;BR&gt;Set IoV = CreateObject("BluebitMatrix30.Matrix")&lt;BR&gt;&lt;BR&gt;M.EigenC RoE, IoE, RoV, IoV&lt;BR&gt;....&lt;BR&gt;End Sub&lt;BR&gt;[/code]&lt;BR&gt;&lt;BR&gt;I have also tried not declaring the variables.&lt;BR&gt;&lt;BR&gt;Can you tell me what I am doing wrong.&lt;BR&gt;&lt;BR&gt;Thanks in advance</description><pubDate>Mon, 01 Mar 2004 16:50:33 GMT</pubDate><dc:creator>anonymous</dc:creator></item></channel></rss>
