|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Conversion from System.Array to a CollectionI have an external API who provide a function returning an System.Array. I'm trying to convert it in a ArrayList or an other collection but could not succeed. Dim SA as System.Array SA = MyFunction API() 'which return the System.Array The conversion Dim Col as ArrayList Col = DirectCast( SA, ArrayList) Does not work. Thanks for your help. Bernard "Bernard Bourée" <bern***@bouree.net> schrieb: \\\> I have an external API who provide a function returning an System.Array. > > I'm trying to convert it in a ArrayList or an other collection but could > not succeed. Dim array() As String = ... Dim al As New ArrayList(array) /// -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Herfried K. Wagner [MVP] a écrit :
Show quoteHide quote > "Bernard Bourée" <bern***@bouree.net> schrieb: >> I have an external API who provide a function returning an System.Array. >> >> I'm trying to convert it in a ArrayList or an other collection but >> could not succeed. > > \\\ > Dim array() As String = ... > Dim al As New ArrayList(array) > /// > Thanks
progress bar
visual basic problem Need some help with vb StatusStrip Control How to abort a WinForms apps with no main window ASP.NET, CSS, and Netscape 7.1 Fields in Access database returned in alphabetical order datagridview combo box latency when loading forms Coding a TimeSpan Fitting a character on a small button |
|||||||||||||||||||||||