<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - How to access control property from VBA macro? - Comments</title>
 <link>http://community.activestate.com/forum-topic/how-to-access-control-pro</link>
 <description>Comments for &quot;How to access control property from VBA macro?&quot;</description>
 <language>en</language>
<item>
 <title>How to make 64-bit app ...</title>
 <link>http://community.activestate.com/forum-topic/how-to-access-control-pro#comment-586</link>
 <description>&lt;p&gt;I think you&#039;ve posted in the wrong thread, Zeng.  Sorry.&lt;/p&gt;
&lt;p&gt;Dave Jenkins&lt;/p&gt;
</description>
 <pubDate>Fri, 09 Feb 2007 10:31:03 -0800</pubDate>
 <dc:creator>Dave Jenkins</dc:creator>
 <guid isPermaLink="false">comment 586 at http://community.activestate.com</guid>
</item>
<item>
 <title>How to make 64-bit app using PDK 7?</title>
 <link>http://community.activestate.com/forum-topic/how-to-access-control-pro#comment-585</link>
 <description>&lt;p&gt;How do I make 64-bit app using PDK 7?&lt;/p&gt;
&lt;p&gt;zeng&lt;/p&gt;
</description>
 <pubDate>Fri, 09 Feb 2007 10:01:12 -0800</pubDate>
 <dc:creator>zeng</dc:creator>
 <guid isPermaLink="false">comment 585 at http://community.activestate.com</guid>
</item>
<item>
 <title>Ok, thanks - I&#039;ll give it a</title>
 <link>http://community.activestate.com/forum-topic/how-to-access-control-pro#comment-38</link>
 <description>&lt;p&gt;Ok, thanks - I&#039;ll give it a whirl.  (Which is what my head is now doing.)&lt;/p&gt;
&lt;p&gt;Dave Jenkins&lt;/p&gt;
</description>
 <pubDate>Mon, 02 Oct 2006 13:08:48 -0700</pubDate>
 <dc:creator>Dave Jenkins</dc:creator>
 <guid isPermaLink="false">comment 38 at http://community.activestate.com</guid>
</item>
<item>
 <title>My best suggestion would be</title>
 <link>http://community.activestate.com/forum-topic/how-to-access-control-pro#comment-37</link>
 <description>&lt;p&gt;My best suggestion would be to look at the included examples bundled with PerlCtrl in&lt;/p&gt;
&lt;p&gt;&lt;code class=&quot;geshifilter&quot;&gt;C:\Program Files\ActiveState Perl Dev Kit 6.0\Samples\PerlCtrl&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;These should give you enough hints in how to create the TypeLib hash. Please also check out the reference material in the &lt;a href=&quot;http://aspn.activestate.com/ASPN/docs/PDK/6.0/PerlCtrl_overview.html#perlctrl_overview_getting_started_with_perlctrl&quot;&gt;online docs&lt;/a&gt;.&lt;/p&gt;
</description>
 <pubDate>Mon, 02 Oct 2006 12:54:16 -0700</pubDate>
 <dc:creator>jeffg</dc:creator>
 <guid isPermaLink="false">comment 37 at http://community.activestate.com</guid>
</item>
<item>
 <title>How to access control property from VBA macro?</title>
 <link>http://community.activestate.com/forum-topic/how-to-access-control-pro</link>
 <description>&lt;p&gt;I have created a control using PerlCtrl and safely registered it.  It has two properties, which I want to be able to access from a VBA module.  It also has a method, which I am able to call and return from.  Here is a snippet of VBA code I am using:&lt;/p&gt;
&lt;p&gt;Set re = CreateObject(&quot;PerlRegex.Match&quot;)&lt;/p&gt;
&lt;p&gt;count = re.Match(&quot;abcdxxabcd&quot;, &quot;a..d&quot;, &quot;gim&quot;)&lt;/p&gt;
&lt;p&gt;If count &amp;lt;&amp;gt; 0 Then&lt;br /&gt;
   Set coll = re.matchedStrings&lt;br /&gt;
   For Each str In re.matchedStrings&lt;br /&gt;
      MsgBox str&lt;br /&gt;
   Next str&lt;br /&gt;
End If&lt;/p&gt;
&lt;p&gt;It bombs on the &quot;for each ...&quot; command, griping that the object doesn&#039;t support that property.  Here is a part of the PerlCtrl file used to create the control:&lt;/p&gt;
&lt;p&gt;=begin PerlCtrl&lt;/p&gt;
&lt;p&gt;[snip]&lt;/p&gt;
&lt;p&gt;Methods     =&amp;gt; {&lt;br /&gt;
    &#039;Match&#039; =&amp;gt; {&lt;br /&gt;
	RetType             =&amp;gt; VT_I4,&lt;br /&gt;
	TotalParams         =&amp;gt; 3,&lt;br /&gt;
	NumOptionalParams   =&amp;gt; 0,&lt;br /&gt;
	ParamList           =&amp;gt; [&lt;br /&gt;
           &#039;string&#039;         =&amp;gt; VT_BSTR,&lt;br /&gt;
	   &#039;pattern&#039;        =&amp;gt; VT_BSTR,&lt;br /&gt;
           &#039;options&#039;        =&amp;gt; VT_BSTR&lt;br /&gt;
	   ]&lt;br /&gt;
        },&lt;br /&gt;
},  # end of &#039;Methods&#039;&lt;br /&gt;
Properties  =&amp;gt; {&lt;br /&gt;
   &#039;positions&#039; =&amp;gt; {&lt;br /&gt;
      Type      =&amp;gt; VT_ARRAY|VT_VARIANT,&lt;br /&gt;
      ReadOnly  =&amp;gt; 0,&lt;br /&gt;
      },&lt;br /&gt;
   &#039;lengths&#039;   =&amp;gt; {&lt;br /&gt;
      Type   =&amp;gt; VT_ARRAY|VT_VARIANT,&lt;br /&gt;
      ReadOnly  =&amp;gt; 0,&lt;br /&gt;
      },&lt;br /&gt;
   &#039;matchedStrings&#039; =&amp;gt; {&lt;br /&gt;
      Type   =&amp;gt; VT_ARRAY|VT_VARIANT,&lt;br /&gt;
      ReadOnly  =&amp;gt; 0,&lt;br /&gt;
      }&lt;br /&gt;
   },   # end of &#039;Properties&#039;&lt;/p&gt;
&lt;p&gt;[snip]&lt;/p&gt;
&lt;p&gt;=end PerlCtrl&lt;/p&gt;
&lt;p&gt;What is the correct way to access the properties from within the VBA code?  What are the various allowable settings of the &quot;ReadOnly&quot; attribute, and where are those documented?&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/how-to-access-control-pro#comments</comments>
 <category domain="http://community.activestate.com/forums/pdk-discussion-0">PDK discussion</category>
 <category domain="http://community.activestate.com/os/windows-xp-pro">Windows XP Pro</category>
 <pubDate>Sun, 01 Oct 2006 15:28:19 -0700</pubDate>
 <dc:creator>Dave Jenkins</dc:creator>
 <guid isPermaLink="false">126 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
