Click here to Skip to main content
15,902,445 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: create array on runtime Pin
Dave Kreskowiak3-Nov-06 18:42
mveDave Kreskowiak3-Nov-06 18:42 
GeneralRe: create array on runtime Pin
keninfo3-Nov-06 23:27
keninfo3-Nov-06 23:27 
GeneralRe: create array on runtime Pin
ChandraRam3-Nov-06 23:46
ChandraRam3-Nov-06 23:46 
GeneralRe: create array on runtime Pin
keninfo4-Nov-06 5:51
keninfo4-Nov-06 5:51 
GeneralRe: create array on runtime Pin
Dave Kreskowiak4-Nov-06 2:59
mveDave Kreskowiak4-Nov-06 2:59 
GeneralRe: create array on runtime Pin
keninfo4-Nov-06 5:53
keninfo4-Nov-06 5:53 
AnswerRe: create array on runtime Pin
OldWarhorse4-Nov-06 1:55
OldWarhorse4-Nov-06 1:55 
AnswerRe: create array on runtime Pin
Guffa4-Nov-06 7:41
Guffa4-Nov-06 7:41 
So you say that you need to create variables dynamically? Well, that's not possible in VB.NET. Why? Because noone ever needs to do that. Ever.

You say that you need to create an array that has a specific name. Strictly speaking that is not possible either, as an array doesn't even have a name.

When you create an array object you get a reference to the object. That reference is usually assigned to a reference variable. For example:

Dim a As String[] = New String[42];

Here the statement New String[42] creates the actual array, and the value of that statement is the reference to the array. The variable a can hold a reference to an object of the type String[]. The reference to the array is stored in the variable.

You can have any number of references to a specific object. Example:

Dim b As String[] = a;<br />
Dim c As String[] = a;


Now you have three references to the array, but there is still only one array. You have three references with different names, and the array doesn't have a name at all.


---
b { font-weight: normal; }

AnswerRe: create array on runtime Pin
OldWarhorse5-Nov-06 4:02
OldWarhorse5-Nov-06 4:02 
GeneralRe: create array on runtime Pin
keninfo5-Nov-06 8:01
keninfo5-Nov-06 8:01 
QuestionMMControl Pin
freefika3-Nov-06 10:58
freefika3-Nov-06 10:58 
AnswerRe: MMControl Pin
Christian Graus3-Nov-06 12:00
protectorChristian Graus3-Nov-06 12:00 
AnswerRe: MMControl Pin
UltraCoder3-Nov-06 16:52
UltraCoder3-Nov-06 16:52 
GeneralRe: MMControl Pin
Dave Kreskowiak3-Nov-06 18:37
mveDave Kreskowiak3-Nov-06 18:37 
AnswerRe: MMControl Pin
Dave Kreskowiak3-Nov-06 18:38
mveDave Kreskowiak3-Nov-06 18:38 
GeneralRe: MMControl Pin
freefika3-Nov-06 22:41
freefika3-Nov-06 22:41 
GeneralRe: MMControl Pin
Dave Kreskowiak4-Nov-06 2:54
mveDave Kreskowiak4-Nov-06 2:54 
GeneralVB.NET and DocuCorp Pin
TonyMatute3-Nov-06 10:25
TonyMatute3-Nov-06 10:25 
GeneralRe: VB.NET and DocuCorp Pin
Dave Kreskowiak3-Nov-06 18:32
mveDave Kreskowiak3-Nov-06 18:32 
GeneralRe: VB.NET and DocuCorp Pin
TonyMatute3-Nov-06 19:34
TonyMatute3-Nov-06 19:34 
GeneralRe: VB.NET and DocuCorp Pin
Dave Kreskowiak4-Nov-06 2:51
mveDave Kreskowiak4-Nov-06 2:51 
Questionis there a dialog to select file OR folder?? Pin
dianadcx3-Nov-06 7:31
dianadcx3-Nov-06 7:31 
AnswerRe: is there a dialog to select file OR folder?? Pin
nlarson113-Nov-06 7:55
nlarson113-Nov-06 7:55 
GeneralRe: is there a dialog to select file OR folder?? Pin
dianadcx3-Nov-06 8:20
dianadcx3-Nov-06 8:20 
QuestionExport text to MS Word with VB.NET 2005 [modified] Pin
DJ-P3-Nov-06 7:02
DJ-P3-Nov-06 7:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.