| | | 
StrataFrame User
       
Group: StrataFrame Users Last Login: 06/27/2008 5:57:22 PM Posts: 436, Visits: 942 |
| How would I pass an array of integers through a property? Like this?
Public Property TransferIDs() As Int32
Get
Return mTransferIDs()
End Get
End Property |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Today @ 8:47:41 AM Posts: 4,104, Visits: 4,175 |
| How would I pass an array of integers through a property? Like this? What do you mean by "pass" in this case? Are you just trying to set the property? |
| | | | 
StrataFrame User
       
Group: StrataFrame Users Last Login: 06/27/2008 5:57:22 PM Posts: 436, Visits: 942 |
| | I'm trying to pass an array from one form to another... |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Today @ 8:47:41 AM Posts: 4,104, Visits: 4,175 |
| | 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: Via a Method Private Sub SetMyArray(ByVal items() As Integer) '-- Do whatever you want with the passed over array. Set a property, use the array, etc. End Sub Via a Property Private _MyItems As Integer() Public Property MyItems() As Integer() Get Return _MyItems End Get Set(ByVal value As Integer()) _MyItems = value End Set End Property |
| | | | 
StrataFrame User
       
Group: StrataFrame Users Last Login: 06/27/2008 5:57:22 PM Posts: 436, Visits: 942 |
| | Thanks! I was making it harder than it was. |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Today @ 8:47:41 AM Posts: 4,104, Visits: 4,175 |
| No problem...I do it all the time! |
| |
|
|