|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Declaration Expectedenough to explain to me why I get a "declaration expected" on this statement: anythingarray(0) = new anything(3) Thanks, Bob Public Class Form1 Inherits System.Windows.Forms.Form Dim anythingarray(4) As anything anythingarray(0) = new anything(3) ' < < here's the statement in error #Region " Windows Form Designer generated code " #End Region End Class Public Class anything Dim onenum As Integer Sub New(ByVal x As Integer) onenum = x End Sub End Class eBob,
What you want to do with those statements, even if it was not this error that the statements are not correct. If it is a try for a redim, than avoid the array, use the arraylist. Cor The conflicting statement needs to be inside a method
/claes Show quoteHide quote "eBob.com" <eBob.***@totallybogus.com> wrote in message news:%23kVlKt%23bGHA.3352@TK2MSFTNGP03.phx.gbl... > I've done a lot of programming but very little OOP. Would someone be kind > enough to explain to me why I get a "declaration expected" on this > statement: anythingarray(0) = new anything(3) > > Thanks, Bob > > Public Class Form1 > > Inherits System.Windows.Forms.Form > > Dim anythingarray(4) As anything > > anythingarray(0) = new anything(3) ' < < here's the statement in error > > #Region " Windows Form Designer generated code " > > > > #End Region > > End Class > > Public Class anything > > Dim onenum As Integer > > Sub New(ByVal x As Integer) > > onenum = x > > End Sub > > End Class > >
Do nothing but wait loop..
User permission problems. sqlconnection Ho do I create a program that can get recognized as a printer driver and installed with the add prin On the fly formatting of textbox contents How can I embedd graphics in Outlook Email without using MAPI Register DLL for COM interop and use it in ASP how to prevent the controls in a form and form itself to scroll? Strip chars from a string Reference count? VB script to VB.Net back to VB script |
|||||||||||||||||||||||