Click here to Skip to main content
16,004,854 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralChange the ForeColor of DateTimePicker contol........ Pin
Pushpa Setty11-Dec-07 20:17
Pushpa Setty11-Dec-07 20:17 
QuestionUrgent: how to add values in gridview textboxs in vb.net? Pin
Ashish Kumar Vyas11-Dec-07 18:36
Ashish Kumar Vyas11-Dec-07 18:36 
AnswerRe: Urgent: how to add values in gridview textboxs in vb.net? Pin
Christian Graus11-Dec-07 18:38
protectorChristian Graus11-Dec-07 18:38 
GeneralDeclarin String Array In Structure Pin
Meenge11-Dec-07 17:30
Meenge11-Dec-07 17:30 
GeneralRe: Declarin String Array In Structure Pin
Meenge11-Dec-07 17:32
Meenge11-Dec-07 17:32 
GeneralRe: Declarin String Array In Structure Pin
Michael Sync11-Dec-07 19:19
Michael Sync11-Dec-07 19:19 
GeneralRe: Declarin String Array In Structure Pin
Meenge12-Dec-07 18:27
Meenge12-Dec-07 18:27 
GeneralRe: Declarin String Array In Structure Pin
nlarson1112-Dec-07 6:38
nlarson1112-Dec-07 6:38 
Meenge,

What Michael has been saying is:

Dim udtCustom() As CUSTOM_EXPORT '<< executing this lines does not actually create any instances of the array. You must specify a size by putting a number between the (). When you do that, now you can use that instance.

Dim udtCustom(1) As CUSTOM_EXPORT '<< now 0 and 1 (because the array is zero based) instances are available for accessing.

---------
Your other problem is the arrays within you structure. Creating instances of your structure does not create any instances of the arrays within. If you notice, in your original post, the () are empty. So once again the variable is created but equal to nothing or has a length of zero (depending on the type of object). So you have to create the instances for those arrays as well by specifying a size. You can do that either at the point of DIMming your variables or using Redim to allocate after DIMming. Michael has chosen to call a routine within the structure to set those sizes. You can either hardcode the size within the () or call a routine or set them outside the structure ex: ReDim udtCustom(1).List(5)

Hope this helps...
Nathan

'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous

GeneralRe: Declarin String Array In Structure Pin
Meenge12-Dec-07 17:34
Meenge12-Dec-07 17:34 
GeneralRe: Declarin String Array In Structure Pin
Paul Conrad24-Dec-07 11:39
professionalPaul Conrad24-Dec-07 11:39 
QuestionRecordset From XML data Pin
Saseendran Kombath11-Dec-07 15:43
Saseendran Kombath11-Dec-07 15:43 
GeneralRe: Recordset From XML data Pin
Michael Sync11-Dec-07 19:17
Michael Sync11-Dec-07 19:17 
GeneralRe: Recordset From XML data Pin
Saseendran Kombath11-Dec-07 22:37
Saseendran Kombath11-Dec-07 22:37 
GeneralRe: Recordset From XML data Pin
Michael Sync11-Dec-07 23:36
Michael Sync11-Dec-07 23:36 
GeneralAppActivate function problem Pin
GuildfordG11-Dec-07 13:27
GuildfordG11-Dec-07 13:27 
QuestionI need VB.NET chat project [modified] Pin
Horanis11-Dec-07 13:11
Horanis11-Dec-07 13:11 
GeneralRe: I need VB.NET chat project Pin
CKnig11-Dec-07 18:31
CKnig11-Dec-07 18:31 
GeneralRe: I need VB.NET chat project Pin
Horanis16-Dec-07 12:36
Horanis16-Dec-07 12:36 
GeneralRe: I need VB.NET chat project Pin
CKnig16-Dec-07 18:15
CKnig16-Dec-07 18:15 
GeneralRe: I need VB.NET chat project Pin
Horanis17-Dec-07 7:56
Horanis17-Dec-07 7:56 
Questionhow to manipulate a simple program from my VB Pin
Ronny Ron11-Dec-07 6:36
Ronny Ron11-Dec-07 6:36 
GeneralRe: how to manipulate a simple program from my VB Pin
Christian Graus11-Dec-07 14:17
protectorChristian Graus11-Dec-07 14:17 
QuestionAutomating MS Outlook with VB.NET to do a find and replace on message body text Pin
craigmg7811-Dec-07 4:30
craigmg7811-Dec-07 4:30 
GeneralRe: Automating MS Outlook with VB.NET to do a find and replace on message body text Pin
craigmg7811-Dec-07 11:35
craigmg7811-Dec-07 11:35 
Questionhow do i access a property in a class on a form Pin
imonfiredammit11-Dec-07 4:10
imonfiredammit11-Dec-07 4:10 

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.