﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Passing an array through a property...</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 26 Apr 2026 15:45:12 GMT</lastBuildDate><ttl>20</ttl><item><title>Passing an array through a property...</title><link>http://forum.strataframe.net/FindPost16180.aspx</link><description>How would I pass an array of integers through a property? Like this?&lt;br&gt;
&lt;br&gt;
   Public Property TransferIDs() As Int32&lt;br&gt;
      Get&lt;br&gt;
         Return mTransferIDs()&lt;br&gt;
      End Get&lt;br&gt;
   End Property&lt;br&gt;</description><pubDate>Tue, 06 May 2008 21:09:13 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Passing an array through a property...</title><link>http://forum.strataframe.net/FindPost16224.aspx</link><description>No problem...I do it all the time! :)</description><pubDate>Tue, 06 May 2008 21:09:13 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Passing an array through a property...</title><link>http://forum.strataframe.net/FindPost16201.aspx</link><description>Thanks! I was making it harder than it was.</description><pubDate>Tue, 06 May 2008 13:54:26 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Passing an array through a property...</title><link>http://forum.strataframe.net/FindPost16200.aspx</link><description>Well, all you have to do is pass an array via a parm...set it via a method...or provide a Set on the property:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Via a Method&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[codesnippet]Private Sub SetMyArray(ByVal items() As Integer)&lt;BR&gt;&amp;nbsp;&amp;nbsp; '-- Do whatever you want with the passed over array.&amp;nbsp; Set a property, use the array, etc.&lt;BR&gt;End Sub[/codesnippet]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Via a Property&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[codesnippet]Private _MyItems As Integer()&lt;BR&gt;Public Property MyItems() As Integer()&lt;BR&gt;Get&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return _MyItems&lt;BR&gt;End Get&lt;BR&gt;Set(ByVal value As Integer())&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _MyItems = value&lt;BR&gt;End Set&lt;BR&gt;End Property[/codesnippet]</description><pubDate>Tue, 06 May 2008 13:53:16 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Passing an array through a property...</title><link>http://forum.strataframe.net/FindPost16198.aspx</link><description>I'm trying to pass an array from one form to another...</description><pubDate>Tue, 06 May 2008 13:44:55 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Passing an array through a property...</title><link>http://forum.strataframe.net/FindPost16194.aspx</link><description>[quote]&lt;SPAN id=ctl02_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl04_lblFullMessage&gt;How would I pass an array of integers through a property? Like this?&lt;/SPAN&gt;[/quote]&lt;/P&gt;&lt;P&gt;What do you mean by&amp;nbsp;"pass" in this case?&amp;nbsp; Are you just trying to set the property?</description><pubDate>Tue, 06 May 2008 13:36:12 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>