﻿<?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  / Using Matrix ActiveX Component in vbscript / 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:10:07 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Using Matrix ActiveX Component in vbscript</title><link>http://www.bluebit.gr/forum/Topic7-1-1.aspx</link><description>Times method expects as a parameter a Matrix object variable. All variables in vbscript are of Variant type. &lt;BR&gt;&lt;BR&gt;There is a workaround for this. &lt;BR&gt;&lt;BR&gt;First declare a function named eg GetRef as follows:&lt;BR&gt;[code]&lt;BR&gt;Function GetRef(objMatrix)&lt;BR&gt;Set GetRef = objMatrix&lt;BR&gt;End Function&lt;BR&gt;[/code]&lt;BR&gt;&lt;BR&gt;Pass all Matrix variables indirectly using this GetRef function.&lt;BR&gt;In your example that will be:&lt;BR&gt;&lt;BR&gt;[code]&lt;BR&gt;Set A = CreateObject("BluebitMatrix30.Matrix")&lt;BR&gt;A.Size 4, 4&lt;BR&gt;A.FillRandom&lt;BR&gt;&lt;BR&gt;Set B = CreateObject("BluebitMatrix30.Matrix")&lt;BR&gt;B.Size 4, 4&lt;BR&gt;B.FillRandom&lt;BR&gt;&lt;BR&gt;Set C = A.Times(GetRef(B))&lt;BR&gt;[/code]</description><pubDate>Mon, 01 Mar 2004 18:34:02 GMT</pubDate><dc:creator>Trifon</dc:creator></item><item><title>Using Matrix ActiveX Component in vbscript</title><link>http://www.bluebit.gr/forum/Topic7-1-1.aspx</link><description>I am trying to use MaXC in vbscript and I get a type mismatch error when I try to use the Times Method.&lt;BR&gt;&lt;BR&gt;This is the code I use:&lt;BR&gt;&lt;BR&gt;[code]&lt;BR&gt;Set A = CreateObject("BluebitMatrix30.Matrix")&lt;BR&gt;A.Size 4, 4&lt;BR&gt;A.FillRandom&lt;BR&gt;&lt;BR&gt;Set B = CreateObject("BluebitMatrix30.Matrix")&lt;BR&gt;B.Size 4, 4&lt;BR&gt;B.FillRandom&lt;BR&gt;&lt;BR&gt;Set C = A.Times(B) &amp;lt;-- Type mismatch error here&lt;BR&gt;[/code]</description><pubDate>Mon, 01 Mar 2004 18:21:55 GMT</pubDate><dc:creator>anonymous</dc:creator></item></channel></rss>
