Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array's
Message
From
24/05/2004 15:50:50
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
24/05/2004 14:26:11
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00906564
Message ID:
00906672
Views:
13
>Keith,
>
>One more question if you dont mind.
>
>In VFP you can set an array as a form property.
>
>Then in any method I could reference thisform.myarray[1,1] etc..
>
>Is this possible in .net or would I just dim it at the top if the class outside any sub's to be available from all methods?
>
>Paul

Paul,

This is simple in VB.NET. Instead of dim-ing it at the top of the class, declare it as a Property.
Class myForm
    Inherits ..Form ' not sure what namespace Winforms use here

    Private _myArray(100,4) as String

    Protected Property myArray() as String()
        Get
            Return _myArray
        End Get
        Set(Value as String())
            _myArray = Value
        End Get
...
End Class
The IDE will fill in most of the stuff for you after you declare the Property.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform