|
-
Sep 28th, 2004, 01:43 AM
#1
What's happening in this line of code?[resolved]
Code:
obj_Parameters = new Object[paramCount];
I'm trying to convert to VB.NET, and there's no way that Object, when instantiated, takes any arguments for its Sub new.
Last edited by mendhak; Sep 28th, 2004 at 06:25 AM.
-
Sep 28th, 2004, 03:09 AM
#2
Fanatic Member
That I think is renewing the size of the array Object. Just my thought though, I'm not quiet sure.
VB Code:
Dim o() As Object
Sub f()
ReDim o(12)
End Sub
edit: sample code
Code:
Button[] b;
private void Form1_Load(object sender, System.EventArgs e)
{
b=new Button[12];
int y=10;
for(int i=0;i<b.Length;i++)
{
b[i]=new Button();
b[i].Text="Button"+(i+1).ToString();
b[i].Location=new Point(10,y);
y+=21;
this.Controls.Add(b[i]);
}
}
hope this helps.
Last edited by brown monkey; Sep 28th, 2004 at 03:16 AM.
-
Sep 28th, 2004, 06:24 AM
#3
Perfect, thanks a lot.
C# is a little confusing.
-
Sep 28th, 2004, 06:26 AM
#4
Fanatic Member
i'ts a single fret higher than C.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|