|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Array AlternativeI am writing an application that reads data from a PLC in a manufacturing plant. I use a control to communicate with the PLC, that returns an array of Short values. I do not always know the length of the data block that will be returned, and so cannot declare a suitable array. (As well as that, I believe re-dimensioning an array in VB.Net is very inefficient) Can anyone suggest a way of storing this data so it can then be manipulated? I am using .Net 1.1 and VS 2003 Thankyou. Paul Cheetham Paul Cheetham wrote:
Show quoteHide quote > Hi, sounds like an arraylist is exactly what you need.> > I am writing an application that reads data from a PLC in a > manufacturing plant. > I use a control to communicate with the PLC, that returns an array of > Short values. > > I do not always know the length of the data block that will be returned, > and so cannot declare a suitable array. (As well as that, I believe > re-dimensioning an array in VB.Net is very inefficient) > > Can anyone suggest a way of storing this data so it can then be > manipulated? > > > I am using .Net 1.1 and VS 2003 > > > Thankyou. > > Paul Cheetham take a look at it. Also some of the collection classes may help. Chris declaring the array with the result should work in my opinion
pseudo code ::: Dim shorts() As Short = Returningdata regards Michel Posseth [MCP] Show quoteHide quote "Paul Cheetham" <PAC.N***@dsl.pipex.com> schreef in bericht news:OK1rkVlLGHA.3496@TK2MSFTNGP14.phx.gbl... > Hi, > > I am writing an application that reads data from a PLC in a manufacturing > plant. > I use a control to communicate with the PLC, that returns an array of > Short values. > > I do not always know the length of the data block that will be returned, > and so cannot declare a suitable array. (As well as that, I believe > re-dimensioning an array in VB.Net is very inefficient) > > Can anyone suggest a way of storing this data so it can then be > manipulated? > > > I am using .Net 1.1 and VS 2003 > > > Thankyou. > > Paul Cheetham
Create Local Administrator
Cdbl & International Settings can you add onMouseOver/onMouseOut to an ImageButton?? Eschewing the Form Designer How to hide one column in datagrid? DateAdd function malfunctions? Dynamically remove child controls ? Step by step it works but... vb.net windows application that connects to the net. Hex with leading zeros to string? |
|||||||||||||||||||||||